>I keep getting the error "Cannot access selected table" in an application I'm working on. The problem occurs with a listbox that is bound to a cursor created inside the control's Requery method. Any ideas?
If you're trying to write over same cursor it's incaccessible. You should set your rowsource to query and call listbox.requery. Maybe you don't need a query rowsource but just an SQL one. ie:
with myListBox
.RowSourceType = 3
.RowSOurce = "select myfield1, myfield2 from myTable "+;
" where myCriteria "+;
" order by myField2" +;
" into cursor crsLookup"
.Columncount = 1
endwith
myListBox.requery() && Would reload
Cetin
Cetin