Changing a Text Value in another form based on a Button Click (1 Viewer)

Marbinski

Registered User.
Local time
Yesterday, 22:29
Joined
Aug 24, 2004
Messages
45
I have a form named FRM_GPI and when the user changes a textbox value to No, I have a form comes up and asks "Are you sure you want to change?"

This form is named Confirm_Change and has two buttons:
Yes and No.

If the user selects Yes
On the form named: FRM_GPI, I want
TEXTA.Text = "N/A"
TEXTB.Text = "N/A"

If the user selects No,
I need
TEXT1.Text = "Y"

I only know how to deal w/ changing values on the current form using
Me.TEXT1, but I need to know how to figure out to do it outisde the current form.

I think this is a simple answer, but I just can't seem to figure it out. Can anyone help me? Thank you...in advance.
 

Newman

Québécois
Local time
Today, 01:29
Joined
Aug 26, 2002
Messages
766
Instead of Me.Blablabla, write OtherFormName.Blablabla.

«Me.» refers to the current form, preventing you from having to write its name. By changing «Me.» to «Newman.» that would mean that you want to do whatever is writen after the dot, but on the form whose name is «Newman».
 

Marbinski

Registered User.
Local time
Yesterday, 22:29
Joined
Aug 24, 2004
Messages
45
Thank you for the reply.

The suggestion works!!!
 

Users who are viewing this thread

Top Bottom