How to get the data from a form into another from.

arunakumari02

Registered User.
Local time
Today, 15:24
Joined
Jun 2, 2008
Messages
91
How to get the data from a form into another from.

I have a form "changeSecreen". I have name, ID, owner and command buttons. When I click on command button the other form "moveScreen" should open with the details of the name, Id and owner from the changeScreen.

Can anyone help me in how to fetch the data from oneform to another forms.

Code:
Private Function openScreen(txtProjectID As Integer)
    DoCmd.OpenForm "frmMoveSreen", , , "[ID]= " & txtProjectID
          
End Function
 
this can be done with the button wizard. try that out!
 
They are rectangular bars not buttons.

Any help is appreciated
 
umm y dont you just use me!txtfield?

ok you can do something like this?

cmdfillinhisform_click()
docmd.openform "movewindow"
with frm
.formfields("bookmark/name of text box goes here").result = me!"name of txtbox on your preveous form"
...
end with
frm.movewindow.visible = true
end sub
 

Users who are viewing this thread

Back
Top Bottom