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.
 
Top