F
Frustrated
I'm writing an application that tracks change management
requests. What I am trying to do is have a start up form
pop up and advise how many requests are pending approval.
Its a simple form that has a label, a text box that
displays the results of a query, and a command button
that closes the form and opens the main switchboard. I'm
setting the focus to the command button on the forms On
Open event.
The form works as advertised as long as there are
requests pending, but if there are none, it errors out
with the run time error '2105' "You can't go to the
specified record." Opening the debugger shows its
erroring out on the DoCmd.GoToControl "cmdClose" line.
The preferable method would be to display this
information in a dialog box, but that's way beyond me.
Any suggestions on the form, or how to only make it
appear if there are records requiring approval, would be
greatly appreciated.
requests. What I am trying to do is have a start up form
pop up and advise how many requests are pending approval.
Its a simple form that has a label, a text box that
displays the results of a query, and a command button
that closes the form and opens the main switchboard. I'm
setting the focus to the command button on the forms On
Open event.
The form works as advertised as long as there are
requests pending, but if there are none, it errors out
with the run time error '2105' "You can't go to the
specified record." Opening the debugger shows its
erroring out on the DoCmd.GoToControl "cmdClose" line.
The preferable method would be to display this
information in a dialog box, but that's way beyond me.
Any suggestions on the form, or how to only make it
appear if there are records requiring approval, would be
greatly appreciated.