relate Long Integer with Text

S

Song Su

How to relate field as Long Integer in one table with another filed as Text
in another table?

Two tables are from different database and I cannot change field type by
modifying table.

Thanks
 
C

Chris2

Song Su said:
How to relate field as Long Integer in one table with another filed as Text
in another table?

Two tables are from different database and I cannot change field type by
modifying table.

Thanks

Song Su,


SELECT YT1.YourColumn_Integer
,YT2.YourColumn_Text
FROM YourTable_First AS YT1
INNER JOIN
YourTable_Second AS YT2
ON YT1.YourColumn_Integer = CInt(YT2.YourColumn_Text)


This assumes that the string values in YourColumn_Text actually
convert to an integer, and then that those converted integers are also
found in YourColumn_Integer.


Sincerely,

Chris O.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top