G
Guest
I have a master/subform, where a text field on the master form filters the
records viewed via the subform.
Problem:
This works fine (i.e. enter "a" in the text field, and only records with an
"a" in the relevant field are listed for the subform), UNTIL you enter an
invalid filter string, i.e. when the result set is zero records.
(The subform is set to not allow new records to be created). Instead of just
showing an empty form, the application fails, blowing up with the error "You
can't go to the specified record".
At this point I can't readily recover from the error, I can't reset the
filter string, because Access thinks the form is empty, so there's no text
box to set properties on!
Any ideas how I can allow the user to interactively filter a record set, but
trap the "no records found" case BEFORE the subform blows up?
Regards: Colin
records viewed via the subform.
Problem:
This works fine (i.e. enter "a" in the text field, and only records with an
"a" in the relevant field are listed for the subform), UNTIL you enter an
invalid filter string, i.e. when the result set is zero records.
(The subform is set to not allow new records to be created). Instead of just
showing an empty form, the application fails, blowing up with the error "You
can't go to the specified record".
At this point I can't readily recover from the error, I can't reset the
filter string, because Access thinks the form is empty, so there's no text
box to set properties on!
Any ideas how I can allow the user to interactively filter a record set, but
trap the "no records found" case BEFORE the subform blows up?
Regards: Colin