>Ok, I have a combo box in a form where I am having the user select a value. The combo box has no control source and is filled with fields from a table. When the user clicks the OK button on the form, I am creating an SDF file from filtered records of 2 tables in the database. These records are filtered based on values and input from the form, one of which is this combo box.
>
>So the problem is, when that combo box isn't touched with the mouse or the value is not changed, everything runs fine. But if I click on the combo box, whether or not I change the value, after the form is run through and I return back to my menu, I get a 'Cannot access the selected table' message.
>
>Any thoughts or ideas??? I've tried everything I can think of.
>
>Thanks for any response,
>
>Mike
Michael, can you post the code you use in the combobox? Did you check before/after if any tables gets somehow closed in the process?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison