Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot access the selected table...
Message
From
22/07/1999 16:26:20
 
 
To
22/07/1999 10:47:54
Paul Wyett
Resource Link Software
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00244721
Message ID:
00244976
Views:
15
>I have a combobox which selects data from a table with sql into a cursor on loading, which works fine - the combo box is filled with the correct data. I then right click in another control (list box) which brings up another form with some of the information of the first form filled in, allowing the user to complete the entry. When the user exits this form, I get the message "cannot access the selected table" and the combobox is no longer on the first form. If I use 'fields' instead of sql it works, but I would like to use sql for everything.
>
>Sql statement - select all consult.consult from consult.dbf into cursor clconsult
>
>I have other combo boxes on the form which do the exact same thing and work fine, just not this one. I have deleted the control and started over and re-entered the sql numerous times but can't find the problem. Any suggestions would be appreciated.
>
>
>Paul

The are two things which should clean this error: clean combo rowsources in Form.Destroy event, and unlink combo from rowsource before running its Select-SQL.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform