Changing a data type

aziz rasul

Active member
Local time
Today, 00:57
Joined
Jun 26, 2000
Messages
1,935
I have a make-table grouped query. One of the fields called [TotalDue] has Expression in the Totals: row. When the table is created the [TotalDue] field is TEXT. How can I change it to a NUMERICAL data type using VBA?
 
Code:
CInt()      - convert to integer
CDbl()      - convert to double
CSng()      - convert to single
CLng()      - convert to long
CDate()      - convert to date
CBool()      - covert to boolean
CCurr()      - convert to currency
CStr()      - convert to string
CDec()      - covert to decimal
CByte()      - convert to byte
CVar()      - convert to variant
 
Thanks Miles. Appreciate it. I should have thought of it myself. But I'm thick.
 
I'm even thicker. I don't understand. Is this the code you would put in the make-table query:

Expr1: CDate([TextDate])

When I try to run the query I get a compile error

Help?
 

Users who are viewing this thread

Back
Top Bottom