Guest_imported
New member
- Jan 1, 1970
- 0
I have a form called frmVehicles and another form called frmScreen, I want to copy the value held in a text box on frmVehicles, open the frmScreen and paste the copied value into another text box on this form.
I have tried this code:
DoCmd.GoToRecord "textBoxName"
DoCmd.RunCommand acCmdCopy
DoCmd.Close
DoCmd.OpenForm "frmScreen"
DoCmd.GoToRecord "newTextBoxName"
DoCmd.RunCommand acCmdPaste
If anyone can help I'd be grateful!!
Sunshine2597
I have tried this code:
DoCmd.GoToRecord "textBoxName"
DoCmd.RunCommand acCmdCopy
DoCmd.Close
DoCmd.OpenForm "frmScreen"
DoCmd.GoToRecord "newTextBoxName"
DoCmd.RunCommand acCmdPaste
If anyone can help I'd be grateful!!
Sunshine2597