Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query convert text to decimal number

Status
Not open for further replies.

4Wile

Programmer
Jul 16, 2001
25
US
Would like to convert text to a decimal number using query.
Text is 12345.65 converted to 12345.65(Real & Decimal number)
Like:
INSERT INTO Newtbl(TestNumb)
SELECT ???? [Oldtbl].[TestText] '???? I need expression
FROM OldTbl
 
I think you need to look up CDbl in the help... Terry M. Hoey
 
I can't find a reference to CDbl..I am a Newbie..
I looked in Help, Access2000 developers handbook,
Visual Basic Super Bible...Cant find CDbl..????
 
first of all, I've been able to append text data to a Numeric field (Field Size was Double) without having to do any conversion, so I don't understand the problem you are having. Terry's example was to use the CDbl or Convert to Double function which would have converted the text string type to a numeric double type. If you are concerned about Access dropping the trailing zero off of the Decimal places, simply change the Format for the Numeric Field To Fixed.

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top