Hi All,
Access 2010
My problem is - In VBA on my main form, I use the line - Call Me.Command117_Click, to execute the action of the Command117 button. It works fine.
On a new form - In VBA, I've used the same method with - Call Me.Command248_Click, to execute the action of the Command248 button. It fails with two different errors-
If I use Call Me.Command177_Click, I get the error message - Method or data member not found
If I use Forms!SearchBuild.commandbutton_248, I get - Application-defined or object-defined error
Both lines are accepted by the editor as correct. The error highlights the Calls not the subsequent action.
Now, both the forms are self-contained and the relevant Command buttons are on their forms and just call an action from another object.
In the working form, the call is made from VBA when a button is pressed.
In the non-working form, the call is made on an AfterUpdate.
Why would the action work on one form and not the other with similar code?
DaveE
Access 2010
My problem is - In VBA on my main form, I use the line - Call Me.Command117_Click, to execute the action of the Command117 button. It works fine.
On a new form - In VBA, I've used the same method with - Call Me.Command248_Click, to execute the action of the Command248 button. It fails with two different errors-
If I use Call Me.Command177_Click, I get the error message - Method or data member not found
If I use Forms!SearchBuild.commandbutton_248, I get - Application-defined or object-defined error
Both lines are accepted by the editor as correct. The error highlights the Calls not the subsequent action.
Now, both the forms are self-contained and the relevant Command buttons are on their forms and just call an action from another object.
In the working form, the call is made from VBA when a button is pressed.
In the non-working form, the call is made on an AfterUpdate.
Why would the action work on one form and not the other with similar code?
DaveE