Hey everyone, got a little query I need some help with. I'm sure it's not too complicated, but I'm quite a beginner when it comes to constructing sql queries.
I need the query to be in sql plz, because I have no experience with VBA.
Basically I have a field "Name" I need to split this up into two seperate fields. "Lastname" and "Firstname".
Below is an example of the data in the "name" field currently.
Woods, Tiger G. Jr.
I need a query that will select from the left until it hits a , then I need it to insert that data into the "lastname" field. Then I need a query that will delete that bit of selected information from the "name" field. Then I'll just rename the "name" field to "firstname".
I'm not worried about the , getting put into the lastname field if it's a problem to get rid of it. I can just do an export into excel and delete the , off that way.
Like I said, I'm a beginner so I'm sure there is a much simplier and more efficient way of doing it.
Any help you can give me is very much appreciated. Thank you.
I need the query to be in sql plz, because I have no experience with VBA.
Basically I have a field "Name" I need to split this up into two seperate fields. "Lastname" and "Firstname".
Below is an example of the data in the "name" field currently.
Woods, Tiger G. Jr.
I need a query that will select from the left until it hits a , then I need it to insert that data into the "lastname" field. Then I need a query that will delete that bit of selected information from the "name" field. Then I'll just rename the "name" field to "firstname".
I'm not worried about the , getting put into the lastname field if it's a problem to get rid of it. I can just do an export into excel and delete the , off that way.
Like I said, I'm a beginner so I'm sure there is a much simplier and more efficient way of doing it.
Any help you can give me is very much appreciated. Thank you.