General information
Category:
Coding, syntax & commands
same
>Use Requery() instead of Refresh()
>
>Also why do you need to recreate the cursor curItem?
>
>>Here is a sample of my code:
>>WITH .cboDefects
>> .RowSource = 'curSecondDefects'
>> .ControlSource = 'curItemData.defect_id'
>> .Refresh()
>>ENDWITH
>>
>>
>>Cursor "curItemData" is created before that code runs. Everything is fine for a first time. Second time I run this code I am getting an error:
>>Alias 'CURITEMDATA' is not found. ....cbodefects.ControlSource 0
>>
>>I tried to disconnect cboDefects from data before curItemData" is recreated:
>>WITH .cboDefects
>> .RowSource = ''
>> .ControlSource = ''
>> .Refresh()
>>ENDWITH
>>
>>Still the same error.
>>What's interesting that I cannot reproduce the errror in the Debugger.
>>
>>Thanks for help.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only