Need to change Datatype Upon Retrieval

bconner

Registered User.
Local time
Yesterday, 21:29
Joined
Dec 22, 2008
Messages
183
I have two tables that I am pulling into a Union query. One of the tables has the invoice number saved as text and the it is saved as a number. I have tried converting the data type however Access says there isn't enough memory to make the change. Is there a way I can convert the data type upon retrieval in a query without changing it in the table?

Any assistance is appreciated
 
Hi -

To convert a number to a string, use the Str() function:

x = 123
y = str(x)

To convert a string to a number, use the Val() function
z = val(y)


HTH - Bob
 
Thanks a bunch!
 

Users who are viewing this thread

Back
Top Bottom