L
LJG
I am running some imports and exports and want to ensure users can stop the
action at stages.
I have added vbMsgBox's to my code and would like to use the vbOkCancel
button to allow a user when they select the cancel the import/export will
stop and go no further.
Can anyone tell me how a create a loop to ensure this works ok
sample code below:
Private Sub Command3_Click()
MsgBox "You are about to update your Prices, have you backed up your
data?.", vbOkCancel
DoCmd.SetWarnings False
DoCmd.RunMacro "importPrices"
MsgBox "New Prices have been imported, now about to update, do you need to
backup your data?.", vbOkCancel
DoCmd.OpenQuery "qryUpdatePrices"
DoCmd.OpenQuery "qryDeleteTempCost"
MsgBox "Prices Have Been updated.", vbOKOnly
End Sub
Thanks in advance
Les
action at stages.
I have added vbMsgBox's to my code and would like to use the vbOkCancel
button to allow a user when they select the cancel the import/export will
stop and go no further.
Can anyone tell me how a create a loop to ensure this works ok
sample code below:
Private Sub Command3_Click()
MsgBox "You are about to update your Prices, have you backed up your
data?.", vbOkCancel
DoCmd.SetWarnings False
DoCmd.RunMacro "importPrices"
MsgBox "New Prices have been imported, now about to update, do you need to
backup your data?.", vbOkCancel
DoCmd.OpenQuery "qryUpdatePrices"
DoCmd.OpenQuery "qryDeleteTempCost"
MsgBox "Prices Have Been updated.", vbOKOnly
End Sub
Thanks in advance
Les