I have two (or more) forms open. I want to set a form (that doesn't have focus) as the active form. I think I do this like so:
Forms!FormName.SetFocus
But I am using a variable to denote the form I want to be Active.
lets say the varibale name is frm12bActive.
So if I wrote this variable in the code:
Forms!frm12bActive.SetFocus
Wouldn't Access be looking for a form Named frm12bActive?
How do I reference the form I want to be active using the varible.
I am not even sure the initial code is correct, but I did get it off of another thread on this forum... so i think it's probably correct...
Thanks,
Gary
Forms!FormName.SetFocus
But I am using a variable to denote the form I want to be Active.
lets say the varibale name is frm12bActive.
So if I wrote this variable in the code:
Forms!frm12bActive.SetFocus
Wouldn't Access be looking for a form Named frm12bActive?
How do I reference the form I want to be active using the varible.
I am not even sure the initial code is correct, but I did get it off of another thread on this forum... so i think it's probably correct...
Thanks,
Gary