G
Guest
I have a combo box with a rowsource defined by using a query builder
(clicking on the ... button). In the Criteria of the query builder, I just
can't seem to refer to a control on a form. My typical query would be like:
SELECT [field1], [field2] FROM tblTable1 WHERE lngSemEnrolNo = "&
Me.lngSemEnrolNo &"
The problem is that I keep getting either a "Data type mismatch in criteria
expression" error or a Enter Parameter Value box. I've tried various
combinations with single quotes, double quotes, single & double quotes, etc.
but keep getting the same error. The only time I don't get the error and it
works is to use the full [Forms]![Form1]![lngSemEnrolNo] notation. Any ideas
why? Thanks.
ck
(clicking on the ... button). In the Criteria of the query builder, I just
can't seem to refer to a control on a form. My typical query would be like:
SELECT [field1], [field2] FROM tblTable1 WHERE lngSemEnrolNo = "&
Me.lngSemEnrolNo &"
The problem is that I keep getting either a "Data type mismatch in criteria
expression" error or a Enter Parameter Value box. I've tried various
combinations with single quotes, double quotes, single & double quotes, etc.
but keep getting the same error. The only time I don't get the error and it
works is to use the full [Forms]![Form1]![lngSemEnrolNo] notation. Any ideas
why? Thanks.
ck