D
DaveF
I have a button on a parent form that when clicked opens a child form
(popup) and displays a specified record.
The parent form supplies the id field (stLinkCriteria) for the record that
is to be opened in the child as:
DoCmd.OpenForm stDocName, , , stLinkCriteria
But if there is no related record, the button click throws an error.
If there is no related record I would like to display a blank child form.
Or at least a message box saying there is no related record.
Can anyone give me some pointers on how to do this?
Thanks
Dave
(popup) and displays a specified record.
The parent form supplies the id field (stLinkCriteria) for the record that
is to be opened in the child as:
DoCmd.OpenForm stDocName, , , stLinkCriteria
But if there is no related record, the button click throws an error.
If there is no related record I would like to display a blank child form.
Or at least a message box saying there is no related record.
Can anyone give me some pointers on how to do this?
Thanks
Dave