I am currently working with Access 2007 on a laptop with Windows XP. I wrote a macro and then converted it into VBA. I have a screen with just buttons on it. Each button performs a VB module. I have tried the Application.Echo False and the DoCmd.Echo False to shut off the action query messages that pop up when you run an action query. Portion of the code is below. I have users that just want to press a button and everything gets done but I still can not find a way to shut off the action query messages such as "You are about to delete records, do you wish to continue?"
Can someone help me? It has me puzzled for two days now and I have checked just about every forum out there.
Public Sub DelRecords()
On Error GoTo DelRecords_Err
' SHUT OFF ECHO MESSAGES
DoCmd.Hourglass True
DoCmd.Echo False
' ACCT CODES - DELETE_ACCT_CODES
DoCmd.OpenQuery "DELETE_ACCT_CODES", acViewNormal, acEdit
' TIME CLOCK GROUPS - DELETE_TM_CLK_GRPS
DoCmd.OpenQuery "DELETE_TM_CLK_GRPS", acViewNormal, acEdit
Can someone help me? It has me puzzled for two days now and I have checked just about every forum out there.
Public Sub DelRecords()
On Error GoTo DelRecords_Err
' SHUT OFF ECHO MESSAGES
DoCmd.Hourglass True
DoCmd.Echo False
' ACCT CODES - DELETE_ACCT_CODES
DoCmd.OpenQuery "DELETE_ACCT_CODES", acViewNormal, acEdit
' TIME CLOCK GROUPS - DELETE_TM_CLK_GRPS
DoCmd.OpenQuery "DELETE_TM_CLK_GRPS", acViewNormal, acEdit