Skip to main content
August 20, 2008
Question

Access string functions like MS SQL "seek"

  • August 20, 2008
  • 1 reply
  • 344 views
OK- I have been shown the correct method to accomplish the split, but not the format that Access understands?

<cfquery name="updatedata" datasource="#Request.BaseDSN#">


UPDATE lookup_requestor n
INNER JOIN

lookup_customers o ON o.BidID = n.old_bid_ID
SET

n.requestor_lname = right(ContactName,seek(ContactName,' ')),
n.requestor_fname = left(ContactName,seek(ContactName,' '))

</cfquery>

Extract first and last names - any advice?

This must have to do with formatting, [ vs ( or "", ' etc.?

Thanks.
This topic has been closed for replies.

1 reply

Participating Frequently
August 20, 2008
n.requestor_lname = '#right(ContactName,seek(ContactName,' '))#',
n.requestor_fname = '#left(ContactName,seek(ContactName,' '))#'