Calling a function

C

Crystal

I'm trying to call a function that is housed in the code
module of FormA from FormB:

Private Sub FormB_Load()

Call Forms!FormA.FunctionName

End Sub

That's erroneous. Is it possible to call a function from
another form? If so, how?

Any help would be greatly appreciated,
Crystal
 
A

Allen Browne

Try:
Call Form_FormA.FunctionName()

Make sure the function does not have the Private keyword.
 

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

Top