Access: Stop the popup messages

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,341
Office Version
  1. 365
Platform
  1. Windows
How do I stop the messages that come with the make table and append table queries? I thought it was SetWarnings = False

I tried different places with no luck - the code errors

Code:
Private Sub Form_Load()
'open home page
On Error GoTo Form_Load_Err


    DoCmd.OpenQuery "qry_1a_Find_New_QuoteNumbers", acViewNormal, acEdit
    '    DoCmd.SetWarnings = False
    DoCmd.Close acQuery, "qry_1a_Find_New_QuoteNumbers"
    DoCmd.OpenQuery "qry_1b_ppend_New_Quotes", acViewNormal, acEdit
    DoCmd.Close acQuery, "qry_1b_ppend_New_Quotes"


Form_Load_Exit:
    Exit Sub

Form_Load_Err:
    MsgBox Error$
    Resume Form_Load_Exit

End Sub
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Thanks. So it was the equal sign that screwed up. I had it first at one point.

Thank You
 
Upvote 0
Yeah, in bouncing back and forth between Excel and Access, I often also sometimes confuse DisplayAlerts with SetWarnings and equals sign or no no equals sign.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top