From one form to another form (1 Viewer)

kitty77

Registered User.
Local time
Today, 05:55
Joined
May 27, 2019
Messages
712
Is it possible to copy the value from a field on form1 to a field in form2? Would like to do it in a command button if possible.

Thanks.
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 05:55
Joined
May 21, 2018
Messages
8,554
Yes. There are probably a few different ways.
Something like:
Code:
Forms!Form2Name.ControlOnForm2Name = Me.ControlOnForm1Name

But the natural question is what are you really doing and why copy a value from form 1 to a field on form 2? My first guess would be your tables are not probably designed.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:55
Joined
Feb 28, 2001
Messages
27,222
If it is always the same control on both forms, this is easy, as MajP shows. However, is there any variability in the To or From controls?
 

Users who are viewing this thread

Top Bottom