Hello...
The situation is this:
I have 2 Forms (let say frmBox1 and frmBox2). In frmBox1 i have CommandButton1 that I set the Properties>Data>Enabled = No.
In frmBox2, i have CommandButton2 to open frmBox1.
I want to insert a VBA code in CommandButton2 to Enabled=Yes the CommandButton1 before the code to open frmBox1.
I tried this code:
.. but i have run-time error '2450': Microsoft Access cannot find the referenced form 'frmBox1'.
Hoping there is a kind heart to help me out this small problem.
Thank you in advance...
The situation is this:
I have 2 Forms (let say frmBox1 and frmBox2). In frmBox1 i have CommandButton1 that I set the Properties>Data>Enabled = No.
In frmBox2, i have CommandButton2 to open frmBox1.
I want to insert a VBA code in CommandButton2 to Enabled=Yes the CommandButton1 before the code to open frmBox1.
I tried this code:
Code:
Forms("frmBox1").CommandButton1.Enabled = Yes
Hoping there is a kind heart to help me out this small problem.
Thank you in advance...