Hi,
I have a listbox populated by data from a cursor that is created as a result of an SQL query. The listbox is used on a form that allows a user to select single records for deletion. Having deleted the desired record, I run the original SQL query again to update the listbox. When I wrote the code it worked fine, but all of a sudden it has started to return "Cannot access selected table" when the listbox is updated.
I have designed a method on the main form that clears some of the other text boxes populated by the data that the user wishes to delete, subsequent to deletion. I have discovered that if I comment out the call to this method, the problem outlined above disappears. However, this method was in use to begin with and worked fine also.
Is this some kind of scoping issue ?
Jim Worley
jim@aits-uk.net
I have a listbox populated by data from a cursor that is created as a result of an SQL query. The listbox is used on a form that allows a user to select single records for deletion. Having deleted the desired record, I run the original SQL query again to update the listbox. When I wrote the code it worked fine, but all of a sudden it has started to return "Cannot access selected table" when the listbox is updated.
I have designed a method on the main form that clears some of the other text boxes populated by the data that the user wishes to delete, subsequent to deletion. I have discovered that if I comment out the call to this method, the problem outlined above disappears. However, this method was in use to begin with and worked fine also.
Is this some kind of scoping issue ?
Jim Worley
jim@aits-uk.net