Hi Derek,
I've got as far as creating a query form,which runs the query on a button
click, and getting the results to display in a table.
Is this using the method shown in the CustomDialogBox.zip sample?
I now need to get those results into a 'results' form. How do I do that?
Three of the samples I have available (Elements.zip, Chap08QBF.zip and the
one available on the Seattle Access web site) all use the same idea of an
unbound main form (ie. no recordsource for the main form) with a bound
subform for displaying the results. Of these three samples, the Elements
sample simply displays the results, but doesn't allow one to open a form to
that record. This was done to keep that example as simple as possible--it
simply demonstrates the code required to "iterate" the .ItemsSelected
property of a multi-select list box. (The other option would be to have a
combo box, or set the Multi Select property of list box to None, so that only
single selections could be made, in which case you would use the control
source property--there is no .ItemsSelected property for a single select list
box).
The Chap08.QBF sample, and the sample available on the Seattle Access web
site, allow one to double-click on a record in the subform, to open that
record for editing. These samples require considerably more VBA coding versus
the CustomDialog sample, but I think I was pretty liberal in commenting the
code, so hopefully it won't be too difficult to follow. There is a Word
document that goes with the sample available on the Seattle Access web site,
which is an attempt by me to explain how this technique works.
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________