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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving multiple records in a form

Status
Not open for further replies.

gwoman

Programmer
Nov 16, 2004
199
US
I inherited a database that manages reservations for creating manifests. Currently on the reservation form the user can only enter a reservation one day at a time. Being that there are several employees that have reservations everyday they are requesting that I add functionality to enter multiple reservations at one time ... for instance John Doe needs a reservation for the month of February ... or maybe for the rest of the year. I have created the objects to capture start date and end date ... however I am struggling with how to save the multiple records.
Any suggestions would be greatly appreciated ... thanks!

gwoman
 
It should be possible with queries, append or update, as appropriate.

Code:
strSQL="INSERT INTO tblReservations (ID, User, StartDate) VALUES (" & Me.ID _
& ",'" & Me.User & "'#" & Format(Me.StartDate,"yyyy/mm/dd") & "#)"
CurrentDB.Execute strSQL, dbFailOnError

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top