Problem Closing Form

R

Ross

I have a mainform, subform set up. When I do a standard
close of the form, I get an interruption in the closing
process by the underlying queries for combo boxes in the
main form (error like trying to run a query that has
missing data fields that the query can't find).

How can I close a form / subform combination without this
error.

Many Thanks

Ross
 
D

Dirk Goldgar

Ross said:
I have a mainform, subform set up. When I do a standard
close of the form, I get an interruption in the closing
process by the underlying queries for combo boxes in the
main form (error like trying to run a query that has
missing data fields that the query can't find).

How can I close a form / subform combination without this
error.

Many Thanks

Ross

I'm not sure what could be going on here. Do the queries in the combo
boxes refer to controls on the main form, as criteria perhaps? I still
wouldn't expect that to be a problem unless there's something happening
as part of the close process -- an event handler, maybe -- that forces a
requery/recalc of the combo boxes.

A workaround might be to set the combo boxes' RowSource properties to ""
in either the Unload or Close event of the form.
 
G

Guest

Dirk,

Perfect (Row Source)

Thank You!

-----Original Message-----


I'm not sure what could be going on here. Do the queries in the combo
boxes refer to controls on the main form, as criteria perhaps? I still
wouldn't expect that to be a problem unless there's something happening
as part of the close process -- an event handler, maybe - - that forces a
requery/recalc of the combo boxes.

A workaround might be to set the combo boxes' RowSource properties to ""
in either the Unload or Close event of the form.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


.
 

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