|
Question : Call the load event of another form
|
|
I am on my main form. I want to refresh the recordset of another open form by calling that forms load event. What is the syntax for that please?
|
|
Answer : Call the load event of another form
|
|
Call Form_F_VMAC1_RFS_EDIT.Form_Load
Though I'd say if you do want to call that same code from elsewhere then location it in it's own function and calling from both the Load event and externally would be preferable. And if you make the function public then you can call it with the traditional form expression
Call Forms!F_VMAC1_RFS_EDIT.fFunctionName or Call Forms("F_VMAC1_RFS_EDIT").fFunctionName
You could, of course, just make your Load event procedure public too... i.e. instead of Private Sub Form_Load() edit it to Public Sub Form_Load()
Which would allow you to use Forms("F_VMAC1_RFS_EDIT").Form_Load now.
|
|
|