I have a list which is populated with Fields from a table, I want to be able to determine if the data type of the value selected in the list is Number. Any ideas, i thought there would be something along the lines of
Me!lstQueryCrit eria.Datatype, but my results turned up no dice.
The reason I wish to do this is, because I am creating a query in VBA and in the Where clause I use IN, and it is giving me a datatype mismatch whenever it is sent a Number data type.
The SQL statement created produces something along the lines of
IN('R10001','R1 0003')
But for a Number datatype
IN('1','3')
doesnot work, i need to remove the ' for this datatype
IN(1,3) and then it works
Excuse the babble, i think i have re-explained myself at least twice over.
Me!lstQueryCrit eria.Datatype, but my results turned up no dice.
The reason I wish to do this is, because I am creating a query in VBA and in the Where clause I use IN, and it is giving me a datatype mismatch whenever it is sent a Number data type.
The SQL statement created produces something along the lines of
IN('R10001','R1 0003')
But for a Number datatype
IN('1','3')
doesnot work, i need to remove the ' for this datatype
IN(1,3) and then it works
Excuse the babble, i think i have re-explained myself at least twice over.
Comment