Hi,
I am using the following code...
I want access to check to see if field 'despatched' is already TRUE, if it
is true then I would like a msgbox to popup saying 'already despatched' then
2 command buttons, one to cancel and not overwrite the details, the other to
continue and overwrite old details with new ones.
Thanks you....
Dim strsql As String
CurrentDb.Execu te "Update tblDownload Set DESPATCHED = True, TRACKING = """
& Me.txtTracking & """, DESPDATE = """ & Me.txtDate & """, TODAYDATE = """ &
Me.txtTodayDate & """, Courier = """ & Me.cmbDeliveryM ethod & """ Where ID =
" & Me.txtOrderNumb er & ";", dbfailonerror
Me.StatusListBo x.AddItem "ORDER # " & Me.txtOrderNumb er & " DESPATCHED AND
ALLOCATED TRACKING #" & Me.txtTracking & "", 0
txtOrderNumber. SetFocus
--
Kind Regards,
Customer Services
P.S. For us to answer your emails efficiently, please always include the
original message. Thank you.
I am using the following code...
I want access to check to see if field 'despatched' is already TRUE, if it
is true then I would like a msgbox to popup saying 'already despatched' then
2 command buttons, one to cancel and not overwrite the details, the other to
continue and overwrite old details with new ones.
Thanks you....
Dim strsql As String
CurrentDb.Execu te "Update tblDownload Set DESPATCHED = True, TRACKING = """
& Me.txtTracking & """, DESPDATE = """ & Me.txtDate & """, TODAYDATE = """ &
Me.txtTodayDate & """, Courier = """ & Me.cmbDeliveryM ethod & """ Where ID =
" & Me.txtOrderNumb er & ";", dbfailonerror
Me.StatusListBo x.AddItem "ORDER # " & Me.txtOrderNumb er & " DESPATCHED AND
ALLOCATED TRACKING #" & Me.txtTracking & "", 0
txtOrderNumber. SetFocus
--
Kind Regards,
Customer Services
P.S. For us to answer your emails efficiently, please always include the
original message. Thank you.
Comment