Passing a form as an arguement

  • Thread starter Thread starter Guest
  • Start date Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top