closing a dialog box

D

Dick Minter

I have added code to a form to trap the error when the user attempts to enter
an unmatching entry into a combo box field (that restricts entries to a
list). The code calls a (modal) dialog box that allows the user to open a
form for updating the combo box source table. The problem: how do I close
the dialog box before opening the second form?

DM
 
R

Rick Brandt

Dick said:
I have added code to a form to trap the error when the user attempts
to enter an unmatching entry into a combo box field (that restricts
entries to a list). The code calls a (modal) dialog box that allows
the user to open a form for updating the combo box source table. The
problem: how do I close the dialog box before opening the second
form?

DM

DoCmd.Close acForm, Me.Name
DoCmd.OpenForm "FormName"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top