Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close combo box 1

Status
Not open for further replies.

mcginty

IS-IT--Management
Mar 14, 2001
35
IE
Hi,

I have a form with a combo box. If I copen and close the form closes normally however if I select an option from the list box and click close button I get 'Cannot access selected table' Do I have to release the combobox?

I'm using two tables, 1 for combobox and 1 for query data, the close button releases the form and closes tables.

Ted
 
Check if you have anything contradictory in
1. ComboBox valid event
2. ComboBox LostFocus Event
There could be some code which contravens the situation.
ramani :)
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Hi Ted,

If you take the code that closes the tables out of the click event of the "Close" button and put it into the destroy method of the form, I think your problem will clear up.

Jim
 
Thanks ramani, I had no conflicting data, thanks Jim this worked a treat.

Rgds,
Ted
 
Check the Unload , LostFocus, Refresh or Requery methods either for the cboBox and the frm. Try to add data to cboBox programmaticaly width addlistitem. Anyway take a look at the enviroment prop&meth.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top