K
KmhComputer
Help Please!
I am writting a Module using VBA in my Access Database.
I have a text file that I have to parse through using string functions like
Left() and Mid(). I am able to pull all of my data out properly with the
exception of Scientific numbers. I am also using VAL() to convert my string
numbers into actual numbers.
Here is an example line I need to read and assign each number to a different
variable. I can pick up the first half of the number and the E and the plus
or minus sign, but the numbers after that are lost. My variables are dim
as Double.
What do I do.? How do I tell the program that this is a Scientific Number?
Is there a better way to do this?
An example:
1.23E-07 2.45E+02 6.99E+10 3.21-06
Any help anyone can give would be greatly appreciated.
Thanks so much,
Kathy
I am writting a Module using VBA in my Access Database.
I have a text file that I have to parse through using string functions like
Left() and Mid(). I am able to pull all of my data out properly with the
exception of Scientific numbers. I am also using VAL() to convert my string
numbers into actual numbers.
Here is an example line I need to read and assign each number to a different
variable. I can pick up the first half of the number and the E and the plus
or minus sign, but the numbers after that are lost. My variables are dim
as Double.
What do I do.? How do I tell the program that this is a Scientific Number?
Is there a better way to do this?
An example:
1.23E-07 2.45E+02 6.99E+10 3.21-06
Any help anyone can give would be greatly appreciated.
Thanks so much,
Kathy