ok so I have two forms open: One is a SP Bookings form with a subform SPDetails Query subform. The other form is the not connected/related SP Contacts Query form, to which users enter Full Name weight age ect. Need to copy the names of the new customers Full Name to the Lookup Contact Column in SPDetails Query subform. I got this far, with my trial runs are commented out. The only thing it does when I click on the button is move to new record on Sp Contacts Query Full Name and Copy the previous record. How do I get the button to copy the Full Name from form SPContacts Query.Full Name to the SPBooking Query.subform SPDetails Query Subform.LookupContact
:banghead:
been tryng this for days help! thanks in advance!
Code:
Private Sub Command52_Click()
Me.Full_Name.SetFocus
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
DoCmd.GoToRecord , "SPDetails Query subform", acNewRec
DoCmd.RunCommand acCmdPasteAppend
'Forms![SPDetails Query subform].[Lookup Contact].SetFocus
'Me.SPDetails_Query_subform.SetFocus
'DoCmd.GoToRecord , "SPDetails Query subform", acNewRec
'DoCmd.GoToRecord , , acNewRec
'Forms![Add New SPContacts Query].Refresh
'Forms![Add New SPBookings].Refresh
'SendKeys "+({f9})"
'DoCmd.GoToRecord , "SPDetails Query subform", acNewRec
End Sub
:banghead:
been tryng this for days help! thanks in advance!