G Guest Feb 21, 2006 #1 How do I go about passing a form as an arguement when calling a sub or function?
A Albert D.Kallal Feb 21, 2006 #2 Assuming you are calling the code from the form...? Just go Call MyCoolSub(me) in a general module..the above sub could be defined as Public Sub MyCoolSub(frm as form) msbox "last name is = " & frm!LastName frm.Refresh (this would case the form to write reord to disk..and refresh) frm.ReQuery (this would case the form to re-load all data.... end sub
Assuming you are calling the code from the form...? Just go Call MyCoolSub(me) in a general module..the above sub could be defined as Public Sub MyCoolSub(frm as form) msbox "last name is = " & frm!LastName frm.Refresh (this would case the form to write reord to disk..and refresh) frm.ReQuery (this would case the form to re-load all data.... end sub