G
Guest
I have a db of hospital patients. The main purpose of the db is to search
those records on a number of different fields. The user is presented with a
form on which they select the search criteria. This builds a string which is
used as the "WHERE:-" clause in opening a second form (DoCmd.OpenForm..) that
displays the results. What I would like to do, and am struggling to
understand, is how to create a report based on the results form, ie have a
button on the results form that would generate and print a report of what is
on the results form. The problem I see is that the data that makes up the
results form is dynamic in that it depends on the user input and is not a
query but a string constructed by the users input "on the fly". The fields to
be displayed are always the same (all the fields of the underlying table)
but the records depend on the search selections and their existance in the db.
Any pointers would be most helpful, TIA
Ian.
those records on a number of different fields. The user is presented with a
form on which they select the search criteria. This builds a string which is
used as the "WHERE:-" clause in opening a second form (DoCmd.OpenForm..) that
displays the results. What I would like to do, and am struggling to
understand, is how to create a report based on the results form, ie have a
button on the results form that would generate and print a report of what is
on the results form. The problem I see is that the data that makes up the
results form is dynamic in that it depends on the user input and is not a
query but a string constructed by the users input "on the fly". The fields to
be displayed are always the same (all the fields of the underlying table)
but the records depend on the search selections and their existance in the db.
Any pointers would be most helpful, TIA
Ian.