commandolomo
Registered User.
- Local time
- Today, 08:45
- Joined
- Jun 11, 2004
- Messages
- 73
Hey y'all
I have some code that runs upon 'FormLoad' of Form A, and I am currently writing some more vba that is to open Form A from a Command Button on Form B.
What I want is for the code that is on Form A, to be triggered upon the clicking of the Command button on Form B. I am using the 'DoCmd.OpenForm "FormA"', but this does not trigger the code that is placed on the FormLoad property of Form A. I cannot seem to find an alternative 'DoCmd.LoadForm "FormA"' command.
I have tried putting the Form A code on the Form_Open property, but when I try to open the form, I get an error stating "The OpenForm Action was cancelled."
Does anyone have any ideas of workarounds / what I am doing wrong?
I have some code that runs upon 'FormLoad' of Form A, and I am currently writing some more vba that is to open Form A from a Command Button on Form B.
What I want is for the code that is on Form A, to be triggered upon the clicking of the Command button on Form B. I am using the 'DoCmd.OpenForm "FormA"', but this does not trigger the code that is placed on the FormLoad property of Form A. I cannot seem to find an alternative 'DoCmd.LoadForm "FormA"' command.
I have tried putting the Form A code on the Form_Open property, but when I try to open the form, I get an error stating "The OpenForm Action was cancelled."
Does anyone have any ideas of workarounds / what I am doing wrong?