>Hi. I think I'm starting to get the hang of this FoxPro stuff. However, I recently ran into the following problem. On a daily time entry form, the user selects (from a dropdown combo) the department in which they work. That value is saved to a variable, and that variable is used to create a cursor (cTasksort) of labor code that apply specifically to that department. The problem is when the form is activated I get the following error message:
>
>THISFORM.Refresh()
>Error: 13
>Alias 'cTasksort' is not found
>Method: navrefresh
>Line: 94
>
>Any suggestions on how to fix this would be greatly appreciated.
>
>EB
Eric, seems like you have the reference to the cursor which does not exist yet by the moment the form activates. You may try to create this cursor in the form.Load() and later it will be re-created each time you select something in the combobox.
Nick
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