Hi.
I would like to get some help to split a text field into two separate fields
I have a table called CUSTOMERS with a field text field called ACCOUNT_NO
The ACCOUNT_NO field is 9 charatcers long
I want to be able to write a query to split the current values in the ACCOUN_NO fields into two fields PREFIX and BASENUM.
Please refer to example below:
***Current State ****
ACCOUN_NO
123456789
***Desired Result ******
PREFIX BASENUM
123 456789
I wrote the query code below but received the following error message:
"Compile error. in query expression 'Left(ACCOUNT_NO],3)':
SELECT Customer.ACCOUNT_NO, Left([ACCOUNT_NO],3) AS Prefix, Right([ACCOUNT_NO],Len([ACCOUNT_NO])-3) AS BaseNum
FROM Customer;
Any help would be greatly appreciated.
I would like to get some help to split a text field into two separate fields
I have a table called CUSTOMERS with a field text field called ACCOUNT_NO
The ACCOUNT_NO field is 9 charatcers long
I want to be able to write a query to split the current values in the ACCOUN_NO fields into two fields PREFIX and BASENUM.
Please refer to example below:
***Current State ****
ACCOUN_NO
123456789
***Desired Result ******
PREFIX BASENUM
123 456789
I wrote the query code below but received the following error message:
"Compile error. in query expression 'Left(ACCOUNT_NO],3)':
SELECT Customer.ACCOUNT_NO, Left([ACCOUNT_NO],3) AS Prefix, Right([ACCOUNT_NO],Len([ACCOUNT_NO])-3) AS BaseNum
FROM Customer;
Any help would be greatly appreciated.