snyperj
asked on
Need help separating data in a string
I have thousands of records in a single field within a table in the following format
\\SERVERNAME\C$\DOCUMENTS AND SETTINGS\USERNAME
The actual data has different values for SERVERNAME AND USERNAME then shown above. I would like to extract the SERVERNAME and USERNAME values into their own fields.
How to do?
\\SERVERNAME\C$\DOCUMENTS AND SETTINGS\USERNAME
The actual data has different values for SERVERNAME AND USERNAME then shown above. I would like to extract the SERVERNAME and USERNAME values into their own fields.
How to do?
ASKER
Sorry should have been more specific on what I was looking for. I created a 'server' and a 'username' field in the table... so I was just looking for how to populate this with an update query run against the table.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
didn't need to do it afterall, but thanks.
dim Myservername as string
dim MyUsername as string
arr= split(mid(yourfieldnameher
MyServername = arr(0)
MyUsername = arr(3)