M
M Skabialka
I have a main form bound to a table, with a subform bound to another table.
When I open the form I don't want to show any records; I want the user to
select one from a combo or click a button to initialize a new one.
However, when the form is on the new record, if I click anywhere on the
subform area (which shows no records at this point) I get error messages
about required fields being null, which they are because the user hasn't
selected a current record, or created a new one yet.
I can't seem to be able to trap this ugly error message so that it won't
show up on the screen.
"The field 'tblx.x' cannot contain a Null value because the required
property for this field is set to True. Enter a value for this field."
I've tried trapping on activate, current, click, etc on the form and the
subform but can't seem to catch it....
I tried DoCmd.SetWarnings False on Open...
It happens when you click the subform when there is a new record on the main
form and none on the subform.
Any advice on hiding this message?
Thanks,
Mich
When I open the form I don't want to show any records; I want the user to
select one from a combo or click a button to initialize a new one.
However, when the form is on the new record, if I click anywhere on the
subform area (which shows no records at this point) I get error messages
about required fields being null, which they are because the user hasn't
selected a current record, or created a new one yet.
I can't seem to be able to trap this ugly error message so that it won't
show up on the screen.
"The field 'tblx.x' cannot contain a Null value because the required
property for this field is set to True. Enter a value for this field."
I've tried trapping on activate, current, click, etc on the form and the
subform but can't seem to catch it....
I tried DoCmd.SetWarnings False on Open...
It happens when you click the subform when there is a new record on the main
form and none on the subform.
Any advice on hiding this message?
Thanks,
Mich