>thanks tery
>
>I have the same error ??
Hmmm.
How about?
You have a form property: .lClearedRecSource.
and the func/method now:
With thisform
If not .lClearedRecSource
.grid1.RecordSource= ""
.lClearedRecSource = .T.
EndIf
EndWith
This should stop the code firing repeatedly.
When a record source IS selected, .lClearedRecSource = .F.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.