RUN ANOTHER ACCESS VBA CODE

  • Thread starter Thread starter souris
  • Start date Start date
S

souris

May I run App1 VBA function code from App2?
If yes, which command can make it work?

Any information is great appreciated,

Souris,
 
You set a reference to App1 in App2. If you want to run a form, you write a
public sub or function in a standard module to open it:

App1:

Public Sub OpenContractors()
DoCmd.OpenForm "frmContractors"
End Sub

App2:
Set a reference to App1 then:

Private Sub cmdOpenContractors_Click()
OpenContractors
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Downloads
http://www.datastrat.com
http://www.mvps.org/access
 

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