MikeAngelastro
Registered User.
- Local time
- Today, 03:04
- Joined
- Mar 3, 2000
- Messages
- 254
Hi,
I have an Access app that opens a form in hidden mode. I am able with code to get the values contained in the textboxes of the form. I am able to select items in a listbox on the hidden form. However, the hidden form contains a button that I want to "click" using VBA code. I am expecting that the event handling code behind a hidden form to act as a method of the form. The line of code I use to try to run the code behind the command button is:
[Forms]![ySales Order Item Information].OKButton_Click
When I run this line of code I get an error number 2465 - Application-defined or Object-defined error.
Any body know what I'm doing wrong? I have a feeling that this should work.
Thanks,
Mike
I have an Access app that opens a form in hidden mode. I am able with code to get the values contained in the textboxes of the form. I am able to select items in a listbox on the hidden form. However, the hidden form contains a button that I want to "click" using VBA code. I am expecting that the event handling code behind a hidden form to act as a method of the form. The line of code I use to try to run the code behind the command button is:
[Forms]![ySales Order Item Information].OKButton_Click
When I run this line of code I get an error number 2465 - Application-defined or Object-defined error.
Any body know what I'm doing wrong? I have a feeling that this should work.
Thanks,
Mike