Convert Text to Number

bstice

Registered User.
Local time
Today, 12:20
Joined
Jul 16, 2008
Messages
55
I use excel automation to export data from access to excel. Often the numbers will come across as text and I use the little green arrow in the top left to convert the number value to text. What is the VBA code which would do the same thing. I have tried using the code to change the format to number, but it doesn't work. Thanks for your help~!!

Brennan
 
Seems like the only way you can do this is to change the format of your field to number by going to the design view of your table.

I use excel automation to export data from access to excel. Often the numbers will come across as text and I use the little green arrow in the top left to convert the number value to text. What is the VBA code which would do the same thing. I have tried using the code to change the format to number, but it doesn't work. Thanks for your help~!!

Brennan
 
try using the val() function
 

Users who are viewing this thread

Back
Top Bottom