G
Guest
I am dynamically inserting rows into a diary table to create the appointment
slots for an employee for a chosen date. The code I am using is below.
Basically it works fine, except for one small hitch, I am getting an
information prompt asking if I am sure I want to save the record after the
docmd has completed. Considering that this is supposed to be happening
invisibly behind the scenes, this is not good. Is there any way to turn off
the prompt?
dtmAppointSlot = dtmWorkStartTime
Do While dtmAppointSlot < dtmWorkEndTime
strSqlStmt = "INSERT INTO Diary " & _
"(AppointmentDate, AppointmentStartTime) VALUES ( " & _
Chr(39) & calDateChooser & Chr(39) & Chr(44) & _
Chr(39) & dtmAppointSlot & Chr(39) & " )"
DoCmd.RunSQL strSqlStmt
dtmAppointSlot = dtmAppointSlot + dtmAppointSize
Loop
Thanks
slots for an employee for a chosen date. The code I am using is below.
Basically it works fine, except for one small hitch, I am getting an
information prompt asking if I am sure I want to save the record after the
docmd has completed. Considering that this is supposed to be happening
invisibly behind the scenes, this is not good. Is there any way to turn off
the prompt?
dtmAppointSlot = dtmWorkStartTime
Do While dtmAppointSlot < dtmWorkEndTime
strSqlStmt = "INSERT INTO Diary " & _
"(AppointmentDate, AppointmentStartTime) VALUES ( " & _
Chr(39) & calDateChooser & Chr(39) & Chr(44) & _
Chr(39) & dtmAppointSlot & Chr(39) & " )"
DoCmd.RunSQL strSqlStmt
dtmAppointSlot = dtmAppointSlot + dtmAppointSize
Loop
Thanks