Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems accessing a table
Message
From
28/07/1999 15:29:01
Paul Wyett
Resource Link Software
Calgary, Alberta, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problems accessing a table
Miscellaneous
Thread ID:
00247360
Message ID:
00247360
Views:
52
I am setting the rowsource of a listbox in the gotfocus event of a form to cursor values.

thisform.list1.rowsource = "mycursor.amount"

I populate the cursor with sql the line before that, and it works fine when the gotfocusevent happens the first time. I then have the user leave the form (thisform.hide) with a right-click event which opens another form. When this new form is closed (it runs, edits, saves, ect no problems) I release it with thisform.release and show the previous form(the one with the listbox).

This time when it goes through the gotfocus event I get the error "cannot access the selected table" at

thisform.list1.rowsource = "mycursor.amount" line.

Even though I get the error everything appears in the list box and everything else on the form works fine, the rowsource is filled in by the refresh event called on the line after the rowsource line.

This only happens ONCE when the application is started and that form is run, and never appears again until it is restarted. It doesn't seem to have any negative effect on the the data either. I can't seem to find the problem...

I have another form in the same application that does the same thing with different data, and the code is exactly same. (other than variable names and sources for the data). It works fine and I have never had any problems accessing the cursor to get the rowsource.

I have tried too many things to list here, but any suggestions would be helpful!

thanks,

Paul
Next
Reply
Map
View

Click here to load this message in the networking platform