Roman F
asked on
Help me with the query
let say, i have a table tblMain
THe table has following fields:
Rec# num
Name text
Account text
Zip text
the query retrieves all from the table:
select Rec# ,Name,Account,Zip from tblMain
At some point i link the table to another table tblAccount
tblAccount has many fields, and one of them is AccountNum which has a datatype number
how to convert the datatype so called "on fly" to number
------------>select Rec# ,Name,convertonumber(Accou nt,) Zip from tblMain
something like this
THe table has following fields:
Rec# num
Name text
Account text
Zip text
the query retrieves all from the table:
select Rec# ,Name,Account,Zip from tblMain
At some point i link the table to another table tblAccount
tblAccount has many fields, and one of them is AccountNum which has a datatype number
how to convert the datatype so called "on fly" to number
------------>select Rec# ,Name,convertonumber(Accou
something like this
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The CAST and CONVERT column functions do not seem to work in MS Access. How can I convert a text column to an integer (number) column?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try CINT.
select Rec# ,Name,CINT(Account), Zip from tblMain
select Rec# ,Name,CINT(Account), Zip from tblMain
ASKER
TO jacko72: WORKS GREAT
I USED the val () in where part of the query and everything works!!!
THANK YOU EVERYBODY
Could you also look at my another querstion?
ID:27026674
help me with ms box in ms access 2010
05/09/11 08:50 AM, ID: 27026674 | Points: 500
help me with ms box in ms access 2010
I USED the val () in where part of the query and everything works!!!
THANK YOU EVERYBODY
Could you also look at my another querstion?
ID:27026674
help me with ms box in ms access 2010
05/09/11 08:50 AM, ID: 27026674 | Points: 500
help me with ms box in ms access 2010
ASKER