List box asks for parameter when I do DoCmd.Close

R

Robert

I have a form for taking questions in a questionnaire. There is a list box
on the form which shows possible choices based on the question number which
is in another text box. The question number is referenced in the list box's
data source query in the form Forms!frmSurvey!txtQuestionno. It works
except when I do a DoCmd.Close on the form I get a popup asking me for the
parameter value Forms!frmSurvey!txtQuestionno. This does not happen when I
click on the X to close the form. Why am I getting a parameter popup on
DoCmd.Close and how can I get rid of it?

Robert
 

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