
display ad hoc query results
Your only alternative (without creating a temp query/table object) would be
to open a recodset on the ad hoc query and manually (in code) display the
results: add them to a list box, grid, text field (if small results), memo
field, output to a text file and show in Note Pad, output to Excel/Word,
etc.
All slower, much more work if you do not want to display in a datasheet for
some reason.
Hope this helps,
GR
Quote:
>I need to display the results of an ad hoc select query on the screen. I
>was thinking that there was something similar to docmd. opentable or
>docmd.openquery, but both require objects that already exist in the
>database. I can create a temporary object, append it to my querydefs
>collection, but I'd rather not.
>Does anyone have a suggestion?