-----Original Message-----
Several. Simplest is to open the Query in design view and click the
dropdown arrow on the leftmost tool in the toolbar at the top of the
screen - the default looks like a datasheet, but one of the options is
SQL. Or, use the View menu option on the menubar and select SQL view.
If you're working on the query in VBA code, the Querydef object has a
SQL property.
.
Thanks.
Now I know the SQL statement is coming out correct, but I
still get a single, blank results line when I add one
criteria to my query. This criteria is looking in a
numeric field for a number greater than one which is typed
into a text box in the form which calls the query. I know
the variable is being set with a number by the form,
because I've had VBA print the variable in the immediate
window.
I have a feeling that the problem may be some
inconsistency between the number type and properties as
defined in the table, the text box in the calling form,
and the query. In use in the application, the number will
never get bigger than 99.999(it is actually a percentage,
[say, 7.875%] but doesn't have to be stored as one, since
it is never used in calculations; but it must be a number
of some kind for the selection [and possible sorting]
process). Do you have any suggestions as to what type of
number it should be, and with what properties in each of
the various places? Or might the blank result be the
result of something else?