M
Morris.C
I am in the middle of converting an Access97 database to Access2003.
I've come across an annoying fault/error in a section of my VBA script
that works under 97, but fails in 2003.
Here's the part of the code that's not working.
The form it's from is "frm_Edit_Job" and it's contained in the onClick
event of a button.
.....
DoCmd.Openform frm_Cancel_Job (Works fine)
Forms!frm_Cancel_Job!Text01 = Me!Text01 (Fails here.)
.....
I've tried:
Forms!frm_Cancel_Job!Text01 = Forms!frm_Edit_Job!Text01.
Both fail with: Run-time error '40036'
Method 'Item' of object 'Forms' failed
I've checked the methods for Forms! and can't find a method that is
connected with setting the value of a text box in a form that is open but
not the active form.
Again, this works under Access97.
Any help would be appreciated.
Thanks.
I've come across an annoying fault/error in a section of my VBA script
that works under 97, but fails in 2003.
Here's the part of the code that's not working.
The form it's from is "frm_Edit_Job" and it's contained in the onClick
event of a button.
.....
DoCmd.Openform frm_Cancel_Job (Works fine)
Forms!frm_Cancel_Job!Text01 = Me!Text01 (Fails here.)
.....
I've tried:
Forms!frm_Cancel_Job!Text01 = Forms!frm_Edit_Job!Text01.
Both fail with: Run-time error '40036'
Method 'Item' of object 'Forms' failed
I've checked the methods for Forms! and can't find a method that is
connected with setting the value of a text box in a form that is open but
not the active form.
Again, this works under Access97.
Any help would be appreciated.
Thanks.