How to copy data from another form

naobao

Registered User.
Local time
Today, 10:02
Joined
Feb 13, 2014
Messages
99
How can I open another form can copy two field data ?
Please check the picture,


Thank you so much!!
 

Attachments

  • check.png
    check.png
    59.9 KB · Views: 92
See Example:- LabelCheck.zip

Code:-
Code:
Private Sub Command0_Click()
    Dim strFrmName As String
    strFrmName = "Form2"
    
        DoCmd.OpenForm strFrmName
        
        With Forms(strFrmName)
            .txtShipment = "Test Shipment"
            .txtStaff = "Test Name"
            .Caption = "I CAN CHANGE THE CAPTION"
        End With

End Sub
 

Attachments

Thank you very much for help!
 

Users who are viewing this thread

Back
Top Bottom