Changing a data type (1 Viewer)

aziz rasul

Active member
Local time
Today, 20:39
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?
 

Mile-O

Back once again...
Local time
Today, 20:39
Joined
Dec 10, 2002
Messages
11,316
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
 

aziz rasul

Active member
Local time
Today, 20:39
Joined
Jun 26, 2000
Messages
1,935
Thanks Miles. Appreciate it. I should have thought of it myself. But I'm thick.
 

akt01

Registered User.
Local time
Today, 20:39
Joined
Jun 19, 2003
Messages
21
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

Top Bottom