bricklebrit
Technical User
Hello,
I am redoing some of my main data and seperating the Customer information into first and last name and then street address in seperate fields.
Right now, I have the field [CustomerName], I'm trying to build a button that, when clicked, will automatically put the first and last name into the corresponding fields:
[CustomerFirstName]
[CustomerLastName]
In a report in the past, I've used the stock code:
Trim(Left([CustomerName],InStr(1,[CustomerName]," "-1
and
Trim(Right([CustomerName],InStr(1,[CustomerName]," "-2
but I am having difficulty with the syntax in programming a button to assign these values to new field values.
Thanks in advance for any assitance or advice!
I am redoing some of my main data and seperating the Customer information into first and last name and then street address in seperate fields.
Right now, I have the field [CustomerName], I'm trying to build a button that, when clicked, will automatically put the first and last name into the corresponding fields:
[CustomerFirstName]
[CustomerLastName]
In a report in the past, I've used the stock code:
Trim(Left([CustomerName],InStr(1,[CustomerName]," "-1
and
Trim(Right([CustomerName],InStr(1,[CustomerName]," "-2
but I am having difficulty with the syntax in programming a button to assign these values to new field values.
Thanks in advance for any assitance or advice!