R
ryguy7272
I tried to follow a couple of examples on the web, but I'm just not getting
it. I have one Table with the following Fields: CustomerName, First, and
Last. CustomerName has names like this: Gates, Bill. I am trying to split
the names, but the Update Query keeps failing (message says 'Cannot update
'First'; field not updateable'). My SQL is below:
UPDATE Table1 SET [First] =
Left([CustomerName],InStr(1,[CustomerName],",")-1), [Last] =
Right(Trim([CustomerName]),Len(Trim([CustomerName]))-InStr(1,[CustomerName],","));
I don't think it is a problem with the SQL; I think it is a problem with the
Table, and the three fields that I am using. Can someone please walk me
through it?
Thanks so much!!
Ryan---
it. I have one Table with the following Fields: CustomerName, First, and
Last. CustomerName has names like this: Gates, Bill. I am trying to split
the names, but the Update Query keeps failing (message says 'Cannot update
'First'; field not updateable'). My SQL is below:
UPDATE Table1 SET [First] =
Left([CustomerName],InStr(1,[CustomerName],",")-1), [Last] =
Right(Trim([CustomerName]),Len(Trim([CustomerName]))-InStr(1,[CustomerName],","));
I don't think it is a problem with the SQL; I think it is a problem with the
Table, and the three fields that I am using. Can someone please walk me
through it?
Thanks so much!!
Ryan---