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!

Sql Data Type 1

Status
Not open for further replies.

JHerr

Programmer
May 25, 2001
42
US
Hi everyone.

I have an sql statment with MANY joins, but the one problem i'm having involves data type. i'm using this:

"tblInsCarrier Inner Join (("**other tables**")) On tblInsCarrier.InsAutoID = tblPatientIns.InsID"

the error i get is:
"Type mismatch in expression"

the problem is that the .InsAutoID field is an autonumber field, while .InsID is a text field in a linked table, with the actual table residing on a server and i cannot change it.
is there a way for me to convert it to a numerical field each time, without creating a new table or new field?
Thanks
-jacob
 

If InsID is always conains numeric data , you could use a VAL function to convert it to integer.

tblInsCarrier.InsAutoID = VAL(tblPatientIns.InsID) Terry

People who don't take risks generally make about two big mistakes a year. People who do take risks generally make about two big mistakes a year. -Peter Drucker
 
Hey thanks! that worked great s-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top