Are you sure you placed your buttons directly on the form?
Also, from where do you call this code? It should be done in the Form's Init or later.
>Hi Gang!
>
>Have you ever seen this?
>
>I''ve got a FORM called FRMPRICEUPDATES.
>
>Ive' got 2 command buttons and one grid on it.
>
>The command button in question is....
>
>cmdImportData
>
>
>When the grid is empty, I want the cmdImportData button to be disabled... simple enough.
>
>Here is the code...
>
>
>IF lnTally > 0
> Thisform.cmdImportData.Enabled = .T.
>ELSE
> Thisform.cmdImportData.Enabled = .F.
>ENDIF
>Thi
>
>
>Yet the code blows on Thisform.cmdImportData.Enabled !!!
>
>"Unknown member cmdImportData" !!!
>
>And when I trace the code to the above code... Thisform. does not show any of the objects I placed on the Form !!!
>
>So, what do I have..... a corrupted Form, or have I lost my mind today ???
>
>Thanks!
If it's not broken, fix it until it is.
My Blog