Microsoft
Software
Hardware
Network
Question : Hide Datasheet View Using Docmd.Openquery
Hi EE,
I've created several SELECT queries and run them using docmd.openquery. Unfortunately, the results of these queries are visible in datasheet view. I'd like to hide the datasheet view and display the final query's results in a form. Oddly, I have dozens of other SELECT queries in this MDB that aren't displayed in datasheet view.
'below queries added by JH 11-11-04 to create accurate supplier
'rfq and single source counts
DoCmd.OpenQuery ("qry_PRIMARY_SS_AVL") 'excludes offline/estimate/customer from AVL table
DoCmd.OpenQuery ("qry_SS_MFG_PN") 'builds single source mpn data to query
DoCmd.OpenQuery ("qry_Supp_SS_RFQ_Counts")
'joins supp name w/ SS count
DoCmd.OpenQuery ("qry_Final_Supp_RFQ_Count
") 'joins supp name w/ ss count and avl table supp count
DoCmd.OpenForm "frm_Final_Supp_RFQ_Count"
, acNormal
All of the "DoCmd.OpenQuery..." actions are displayed in datasheet view...argh.
Any suggestions?
Thank you in advance!
Jay
P.S. I've tried using the currentdb.querydefs("myque
ry").execu
te per another EE post but as my queries are SELECT actions, execute isn't allowed. One other variable: the queries are querying other query's datasets.
Answer : Hide Datasheet View Using Docmd.Openquery
you must be opening the queries somewhere, find out where and remove the DoCmd.OpenQuery
Random Solutions
ReportViewer Export to PDF Loses Tabs or Multiple Blnak Spaces
WUTemp Folder
Reformatting Drives C D E and F
Visual Studio 2008, Listbox location on picturebox insdie a form
Conditional page break in excel macro
PowerPoint AddIn/Custom Ribbon generating macro error
change a sourceobject for a subform
SharePoint 2010 and the URL Length Error
What sort of utility will provide autocomplete suggestions while I am typing text within applications such as Microsoft Word, Internet Explorer, notepad, etc.?
Difference between coding in module, sheet, or workbook window