Does anyone know how to have a Add Record Command Button on a Main Form that will trigger the Subform to create a new record? If anyone knows, I'd really appreciate the help.
'add record to sub form
Me![Yoursubform].SetFocus
DoCmd.GoToRecord , , acNewRec
'assign a value to a field in that sub form
Me![Yoursubform].Form![SomeField] = somedata
'save the record
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.