In Microsoft Access, I have two linked tables which I can’t change the structure of.
One of these tables contains an ID in integer format, the other contains the same ID, but in string format.
I want to join on these fields, but, obviously, MS Access isn’t letting me.
Is there a way, possibly using casting or something similar to create this join?
Thanks
If
IDis autonumber int1and text int2, you can useCLng()in theONexpression to transformt2.IDto long integer.Or you could use
Val()instead ofCLng()for otherIDnumeric types.I’m not sure how well the query designer will cooperate with this in Design View, but you can do it in SQL View.
OTOH, you may prefer to create a separate query, “qryT2”, for
t2which transforms the text ID to numeric.Then you could substitute
qryT2fort2in the first query, and have one which the query designer finds to be more congenial.