LarryDeLaruelle
Technical User
I am creating a db to store and report on Pre and Post tests for children. Only one pretest is permitted but multiple post tests are possible.
If one or more post tests have already been entered, I would like to provide the user with a list of those records via a form and allow the user to select cancel or continue.
I have created the display form with appropriate notifications, a list of existing records and cancel and continue buttons. (The criteria for the underlying query for this form is the ChildID from the main form.)
In the code of the main form I use an SQL statement of open a record set with the criteria set to the ChildID. If the record count is greater than zero, I want to open the form to display the list of record/s and capture the user's response (cancel/continue).
What I can't figure out is how to proceed. I've tried putting a docmd.openform as the "Then" part of the record count test in the main form and I've tried setting up both functions and subs to open the form.
Hopefully this description provides enough detail but, if not, please ask for more.
Any suggestions will be gratefully received.
Thanks.
Larry De Laruelle
larry1de@yahoo.com
If one or more post tests have already been entered, I would like to provide the user with a list of those records via a form and allow the user to select cancel or continue.
I have created the display form with appropriate notifications, a list of existing records and cancel and continue buttons. (The criteria for the underlying query for this form is the ChildID from the main form.)
In the code of the main form I use an SQL statement of open a record set with the criteria set to the ChildID. If the record count is greater than zero, I want to open the form to display the list of record/s and capture the user's response (cancel/continue).
What I can't figure out is how to proceed. I've tried putting a docmd.openform as the "Then" part of the record count test in the main form and I've tried setting up both functions and subs to open the form.
Hopefully this description provides enough detail but, if not, please ask for more.
Any suggestions will be gratefully received.
Thanks.
Larry De Laruelle
larry1de@yahoo.com