Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add new value in sub form

Status
Not open for further replies.

amna77

Programmer
May 27, 2003
69
GB
Hi I am trying to save values in my sub form. actually on mu sub form i am keeping the date. when ever user enter date in the main form it gets in to subform date. thats what i want.
Forms!frmCMMDataEntry!Form1!Date = Me.Date
but the thing is when i add new record on main form, then sub form values does not save. i tried to add codes on the main form add new record button.

DoCmd.GoToRecord , , acNewRec
DoCmd.Save acForm, "Form1"
but it gives me error. anyidea whats wrong.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top