P
Philip Martin
I am building a database and need to import some data tables from an old
(Approach) data base.
The imported table has a field in it [Field2] containing the possible
variations:
Steve Brown
Mr. Steve Brown
Mr. S Brown
S Brown
You get the picture?
Now I want to use an UpDate Query to separate off the Surname into a new
field [Surname]. I have tried using the code sample from the MVP site in the
query:
Right$([Field2],Len([Field2])- InStr(1,[Field2],",")-1)
However all that is happening on the UpDate is that the [Surname] field is
being propagated with the contents of the [Field2] but minus the very first
character! i.e. "r. Steve Brown".
Help on this would be much appreciated.
Philip Martin.
(Approach) data base.
The imported table has a field in it [Field2] containing the possible
variations:
Steve Brown
Mr. Steve Brown
Mr. S Brown
S Brown
You get the picture?
Now I want to use an UpDate Query to separate off the Surname into a new
field [Surname]. I have tried using the code sample from the MVP site in the
query:
Right$([Field2],Len([Field2])- InStr(1,[Field2],",")-1)
However all that is happening on the UpDate is that the [Surname] field is
being propagated with the contents of the [Field2] but minus the very first
character! i.e. "r. Steve Brown".
Help on this would be much appreciated.
Philip Martin.