Issam
What are you saying? Is it not working? What happens/does not happen?
.grid1.RecordSourceType = 1 && alias ????
Terry (with 2 "r"s like yours has 2 "s" :-)
>tery,
>
>I should have some thing misssing some where, her what i did:
>
>I creat "lClearedRecSource" property
>
>Then we add the following:-
>
>Thisform.LockScreen=.T.
>
>With Thisform
> If Not .lClearedRecSource
> .grid1.RecordSource= “”
> .lClearedRecSource = .T.
> Endif
>Endwith
>
>Select amaster
>Go Top
>
>With Thisform.grid1
> .RecordSource=[AMASTER]
> .column1.ControlSource=[AMASTER.ACCTNAME]
> .column2.ControlSource=[AMASTER.ACCTNO]
> .column3.ControlSource=[AMASTER.BORNDATE]
> .column4.ControlSource=[AMASTER.BALANCE]
>Endwith
>
>
>With Thisform
> If .lClearedRecSource
> .lClearedRecSource = .F.
> Endif
>Endwith
>
>Thisform.LockScreen=.F.
>
>
>Thanks tery
- 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.