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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access: Convert String to Double

Status
Not open for further replies.

sabascal

IS-IT--Management
Aug 20, 2002
85
0
0
GB
Hi,
I am querying a table with 1! column.
In this column, there are strings and number (which format is string).
I want to query this table, filtering text fields and summing the numeric one.
Probleme even for numbers, format is string.

what built in function can i use to convert the numbers (string format) into numeric format
 
Hi sabascal,

Not quite sure what you want to do with the text values, but this should sum the numeric ones ..

[tt][blue] SELECT Sum(CDbl(YourColumn))
FROM YourTable
WHERE IsNumeric(YourColumn)[/blue][/tt]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top