Hi Guys.
I created a macro which I then converted to a module ( Not the best thing I know, but I have VERY little knowledge of VBA at the min )
This is the code it created.
How would I get it to give a yes or no prompt after this line
MsgBox "You Are About To ARCHIVE Records From LIVE Customer Data ",
That would enable the user to either continue, or cancel
Any help would be much appreciated
Thanks in advance
Max
I created a macro which I then converted to a module ( Not the best thing I know, but I have VERY little knowledge of VBA at the min )
Code:
Function mcr_archive_data()
On Error GoTo mcr_archive_data_Err
DoCmd.SetWarnings False
DoCmd.Hourglass True
Beep
MsgBox "You Are About To ARCHIVE Records From LIVE Customer Data ", vbCritical, "ARCHIVING DATA"
DoCmd.OpenQuery "qry_archive_data", acViewNormal, acEdit
Beep
MsgBox "ARCHIVING DATA COMPLETE", vbInformation, "ARCHIVING DATA"
mcr_archive_data_Exit:
Exit Function
mcr_archive_data_Err:
MsgBox Error$
Resume mcr_archive_data_Exit
End Function
How would I get it to give a yes or no prompt after this line
MsgBox "You Are About To ARCHIVE Records From LIVE Customer Data ",
That would enable the user to either continue, or cancel
Any help would be much appreciated
Thanks in advance
Max
Last edited by a moderator: