>Thank you for your quick reply. I do have one problem with your suggestion. I am calling Form B through a menu command so the code line 'do form FormB with ThisForm' shouldn't work - should it?
No it will not. I use a couple of function to cycle through the currently open forms and look for a specific form then return an object to it (one searches on form title the other on name) you could use something along these lines to get the Form A object.
Function GetWindowObject
lparameter tcWindowName
local loReturn, i, lnTot
loReturn = .NULL.
lnTot = _screen.FormCount
tcWindowName = Lower(tcWindowName)
for i=1 to lnTot
if Lower(_screen.Forms(i).Name) == tcWindowName
loReturn = _screen.Forms(i)
exit
endif
endfor
return loReturn
HTH
Caroline