Link to home
Start Free TrialLog in
Avatar of LeeHopkins
LeeHopkinsFlag for United States of America

asked on

using cast or convert in assces 2005 query to convert a text field to integer

I have a linked table to an as400 db the field on the as400 is a text  field i have a query that needs to compair the value from the as400 to an INteger(number) how so i use a cast  or convert function in my asscess 2005 query

select as400.PONum from as400

in sql i would just select cast(as400.ponum as int) as ponum but it does not work in acess 2005
ASKER CERTIFIED SOLUTION
Avatar of cquinn
cquinn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try:

select Val(PONum) as numPOnum from as400;

Nic;o)