|
-
Jul 25th, 2005, 01:33 PM
#1
Thread Starter
Frenzied Member
ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" [RESOLVED]
Esteemed Forum Participants and Lurkers:
===============================
ACCESS 2000 (XP) & '97
I am running an SQL statement on an existing table to create a new table. How can I keep the dumb modal popup "You are about to insert a zillion records into your table" from occurring? Here is where the warning pops up:
Code:
strSQL = "SELECT * INTO " & TABLE & " FROM MASTER_EXTRACT WHERE(Prof=" & i_Profile & ")"
DoCmd.RunSQL strSQL
Thank you for your gracious comments, suggestions, and assistance.
Last edited by Webtest; Jul 25th, 2005 at 02:54 PM.
Reason: [RESOLVED]
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 01:46 PM
#2
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Turn the alerts off before the insert and back on after. 
VB Code:
application.displayalerts = false 'off
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 01:50 PM
#3
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Hey ... wait a minute ... that's the way megashaft does it in Excel! They couldn't possibly have done it the same way in Access???
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 01:53 PM
#4
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 02:02 PM
#5
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Hah!!! I was RIGHT!
Application.DisplayAlerts in Access yields an ERROR!
"Method or data member not found"!
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:04 PM
#6
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:05 PM
#7
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
An error turning off the alerts or from the insert code?
The display alerts property will accept the default choice when they are turned off.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 02:12 PM
#8
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
When I run the function it bombs with ".displayalerts" highlighted in the first line with the message "Method or data member not found". It does NOT like "DisplayAlerts".
Code:
Application.displayalerts = False
DoCmd.RunSQL strSQL, False
Application.displayalerts = True
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:14 PM
#9
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Oh, which version of access are you testing this on? 97 or 2000?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 02:16 PM
#10
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Doh! Memory failing.... use wdAlertsNone
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 02:18 PM
#11
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
ACCESS 2000 right now ... I don't think I have to make the top-level table generator compatible with '97.
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:20 PM
#12
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
My Bad My previous post is for words constant. 
It should be True/False for Access 97+ but double check this link for it and 97.
http://msdn.microsoft.com/archive/de...html/SFE31.asp
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 02:21 PM
#13
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
 Originally Posted by RobDog888
Doh! Memory failing.... use wdAlertsNone
Could you please put this in context? I can't quite figure out how to use it ...
A most sincere "Thank you"!
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:25 PM
#14
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Post #12 shows my error and you dont need that constant since it was my mistake and posted for Word and not Access.
Question: is this all being run from behind a forms button click or something?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 02:31 PM
#15
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Look back at my post #8 ... ACCESS:
When I run the function it bombs with ".displayalerts" highlighted in the first line with the message "Method or data member not found". It does NOT like "DisplayAlerts".
Now that we know how EXCEL works, let's try to solve the ACCESS problem ... how to turn off (and back on, of course) Display modal popups.
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:34 PM
#16
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
web, maybe you don't realize this, but rob is trying to help you. Could you try to be a little less rude?
-
Jul 25th, 2005, 02:35 PM
#17
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
I found it ...
DoCmd.SetWarnings False
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:37 PM
#18
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
Well I'm sorry for the confusion but I am eating lunch and posting at the same time. So at least its Resolved
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 02:40 PM
#19
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
... and "DoCmd.SetWarnings [True|False]" works fine.
I was going to say something REALLY nice about the Raiders, but now ...
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 02:45 PM
#20
Thread Starter
Frenzied Member
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" ???
 Originally Posted by kfcSmitty
web, maybe you don't realize this, but rob is trying to help you. Could you try to be a little less rude?
Rob Dog ... You're the greatest! And the Raiders are the greatest team that I follow religiously!
kfcSmitty ... sorry to have bugged you with my feeble attemps at trying to convince (and tease) RobDog that he was confusing Access with Word and Excel! My signature is very sincere ...
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 03:08 PM
#21
Re: ACCESS: How To: Disable popup on RunSQL with "SELECT INTO" [RESOLVED]
Art, No worries or ofense taken
Even a Guru can have a bad day 
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|