R
Rillo
I have a data entry form containing a reference and other fields. When the
Lost Focus event occurs on the reference field, a macro is invoked that
displays a second form containing the reference and a name. The second form
is based on a query that finds a record with a matching reference. The
purpose is to allow the user to check the name before proceeding.
When the user closes the second form with a command button, the first form
is redisplayed.
This process works fine until the query produces no matching records, in
which case a completely blank form is displayed.
How can I introduce a “no data†condition into the macro that displays the
second form, so that, say, a message could be displayed instead of a blank
form?
I would prefer to work within the macro, rather than use code, if possible.
Lost Focus event occurs on the reference field, a macro is invoked that
displays a second form containing the reference and a name. The second form
is based on a query that finds a record with a matching reference. The
purpose is to allow the user to check the name before proceeding.
When the user closes the second form with a command button, the first form
is redisplayed.
This process works fine until the query produces no matching records, in
which case a completely blank form is displayed.
How can I introduce a “no data†condition into the macro that displays the
second form, so that, say, a message could be displayed instead of a blank
form?
I would prefer to work within the macro, rather than use code, if possible.