Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Relation on linked tables with different data formats 1

Status
Not open for further replies.

InterGeorge

Technical User
May 31, 2003
17
LC
I have two linked tables (ODBC, read only) where I need to link tables (relation)
Now the invoice is Transaction_ID = 7 == invoice
There the field is Number_ID(text) and in the invoice the invoice_ID is numeric. how can I link this text to numeric??

I have one empty field (Link_ID(numeric)) available.

How do I copy the text filed (contains only numbers) to the number field. I tried "Link_ID Val(Number_ID)" but ending up with errors.

Is there a way to extract only the numbers and move them to the numeric field? Like in Pascal: ID=Num(textstring)??

I also could INSERT this table in a local one, but I have the same problem, convert the text in to numbers!

Thanks a lot for any thoughts

George
 
Assuming you output filed is datatype LONG..

update mytable set Link_ID = clng(Number_ID)



Mike Pastore

Hats off to (Roy) Harper
 
**Y E S ***

it works

two days headache come to an end!!

mhhmmm.. thiny little question:
if the field contains ASCII (I did run on all, incl. ASCII), how can I surepress error messages? Just for future use - who is perfect ;)
 
Not sure about that one, maybe docmd.setwarnings false

Mike Pastore

Hats off to (Roy) Harper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top