473,412 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

My query datasheet is hidden behind my forms

1
Please help as I have a problem at work.

There is a button on my form that runs a query. It all works fine except that the query results are shown behind my form instead of coming to the front. I have looked in the properties for a popup option (like I found for forms and reports) but I cannot find one. I can close the form to view the results but we don't want our users to be able to see all the Access menus etc. I can bring forms and reports to the front but not queries. I would put this into a report but we require the data in datasheet view.

Alternatively, is there an easy way (with a click of a button on my form) to export the query data straight to Excel. I can do this using the Access menus (Tools / Office Links / Analyse It with Microsoft Excel) but I don't want my users to be able to see the Access menus.

I am using Office 2003 with Windows XP Professional.

I hope this all makes sense.

Please help,
Jafoxy
Jul 20 '07 #1
4 6720
Lysander
344 Expert 100+
Please help as I have a problem at work.

There is a button on my form that runs a query. It all works fine except that the query results are shown behind my form instead of coming to the front. I have looked in the properties for a popup option (like I found for forms and reports) but I cannot find one. I can close the form to view the results but we don't want our users to be able to see all the Access menus etc. I can bring forms and reports to the front but not queries. I would put this into a report but we require the data in datasheet view.

Alternatively, is there an easy way (with a click of a button on my form) to export the query data straight to Excel. I can do this using the Access menus (Tools / Office Links / Analyse It with Microsoft Excel) but I don't want my users to be able to see the Access menus.

I am using Office 2003 with Windows XP Professional.

I hope this all makes sense.

Please help,
Jafoxy
You can export to excel under code. Below is an example I used to allow a user to extract some data into excel
Expand|Select|Wrap|Line Numbers
  1. DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel3, "qryCombinedWithChildren", "z:\bissau\CombinedWithChildren.xls", True
  2.  
Checkout Help TransferSpreadsheet for what all the parameters mean
Jul 20 '07 #2
hyperpau
184 Expert 100+
Please help as I have a problem at work.

There is a button on my form that runs a query. It all works fine except that the query results are shown behind my form instead of coming to the front. I have looked in the properties for a popup option (like I found for forms and reports) but I cannot find one. I can close the form to view the results but we don't want our users to be able to see all the Access menus etc. I can bring forms and reports to the front but not queries. I would put this into a report but we require the data in datasheet view.

Alternatively, is there an easy way (with a click of a button on my form) to export the query data straight to Excel. I can do this using the Access menus (Tools / Office Links / Analyse It with Microsoft Excel) but I don't want my users to be able to see the Access menus.

I am using Office 2003 with Windows XP Professional.

I hope this all makes sense.

Please help,
Jafoxy
Why don't you create another form bound to your query. Then format that form's properties as DefaultView = Spreadsheet.

Then program your button to pull up the form instead of the query.
Jul 20 '07 #3
rath
1
I have similar problem. I created the form in datasheet view and bound to query already. But the problem is if the query changes the field, the form will be error. I need to create a form in datasheet to bound to my dynamic column query so i can view my query to pivottable. If create to subform, it cannot view as pivotable. Any advise?
Jun 16 '10 #4
I did it in access 2010
I had a same problem. But I could brought my query coming to the front by:
- Dont't popup the form(set popup to "no")
- Choose File\Options\Current Database.
- Click Overlapping Windows
Jun 30 '16 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David Vestal | last post by:
We have some .NET code, and we're attempting to use DDE to open a PDF document and navigate to a bookmark in it using DDE. .NET doesn't support DDE, so we hid the DDE behind a COM interface. It...
0
by: ghat12 | last post by:
I have created a search form that displays results in separate datasheet which is launched by specifying the queryname in the OnClick property of a command button on the search form. My problem is...
3
by: Widge | last post by:
Hi, I've made a piece of VBA that uses a combination of combolists and listboxes to run a query. I just can't think of a way to make this query generate a chart based on its results. Here is my...
3
by: 93RT6R | last post by:
how do i bring a hidden modal form on top while preserving the values entered in the fields?
4
by: Stan | last post by:
I am using MS Office Access 2003 (11.5614). My basic question is can I run a query of a query datasheet. I want to use more that one criteria and can not get that query to work. I thought I...
4
by: dwasbig9 | last post by:
Hi Group, I'm creating a maintenance switchboard and am trying to create forms to update tables and wanted these to appear as datasheets. Although I have the default view set to datasheet and...
14
by: kpfunf | last post by:
I have a select query that uses an "OR" join. With that join in place, I cannot edit the data in the query datasheet; if I delete the "OR" and only use one join, then I can edit the data. I read...
2
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, How can I query a Windows.Form control if it is hidden or not. I would like to toogle Hide/Show and not use a bool as control variable for this but simply query the form werther or not its...
2
by: Michael Burke | last post by:
Access 2007 Query - how to open forms in Datasheet View rather than Form View on a Switchboard. I need to change the code in the code element named "HandleButtenClick" Yet I cannot find this code...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.