I don't think so. It needs to be outside with .Header1 ... endwith or written as .Parent.Header1 not .Header1 ;)
Cetin
>Sergey's correction is right and should fix your problem. With code has nothing to do with "this" reference you're trying to pass.
>
>>>Hi Mike,
>>>
>>>You're binding to the grid Click. To bind to a header
>>>
>>> BINDEVENT(.header1,'Click',thisform,'GetAdjUnits')
>>>
>>>
>>
>>If you examine the code, I have a with .header1 endwith loop with the bindevent inside. that's why I used this. Are you saying that I should put header1 instead?, inside the with/endwith will cause an error, so I need to place it outside the loop? or...
>>TIA,
>>Mike