Relating to form in code

  • Thread starter newbie via AccessMonster.com
  • Start date
N

newbie via AccessMonster.com

jst a quick question

if i want to relate to a form in another form's coding how do i go about
writing it? (i hope this makes sense - jst incase..e.g. - i have a form(frm_a)
whereby i want to mention a field from another form(frm_b) in frm_a's
OnCurrent coding..can this be done?
 
K

Keith Wilby

newbie via AccessMonster.com said:
jst a quick question

if i want to relate to a form in another form's coding how do i go about
writing it? (i hope this makes sense - jst incase..e.g. - i have a
form(frm_a)
whereby i want to mention a field from another form(frm_b) in frm_a's
OnCurrent coding..can this be done?

Techie note: forms don't have fields, they have objects, some of which can
be bound to fields. If you wanted to refer to an object such as a text box
on another form then try

Forms!frm_b!txtMyTextBox

where txtMyTextBox is the name of the text box. Note that the form would
have to be open in "normal" mode.

HTH - Keith.
www.keithwilby.com
 
Top