Calling a function

  • Thread starter Thread starter Crystal
  • Start date Start date
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
 
Try:
Call Form_FormA.FunctionName()

Make sure the function does not have the Private keyword.
 
Back
Top