Link to home
Start Free TrialLog in
Avatar of JMO9966
JMO9966

asked on

Microsoft Access query syntax help needed - need to Cast to join tables

Experts,

I have a PO_Detail table with an AutoNumber PK, data type Long Integer.

My select statement starts with Table B and I need to join table PO_Detail.

The problem is this my foreign key in table B is a Text data type instead of Long Integer.

Can someone assist and show me how to cast this Text field in column B to Long Integer and also then join the two tables on this field.

PO_Detail.AutoNumber=B.ColumnName

Thanks,
JMO9966
ASKER CERTIFIED SOLUTION
Avatar of TWBit
TWBit
Flag of United States of America 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
I would correct the tables if you can, it will saves loads of grief for the future.
Cheers, Andrew
Avatar of JMO9966
JMO9966

ASKER

Thanks TW,

I don't own the db TextReport so I'm not able to change DB properties.

JMO9966