473,378 Members | 1,592 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,378 software developers and data experts.

How can i create a button on a form which asks for a data/filter and then exports thi

Hi, i am trying to create a filter almost that will export the filtered data to Excel 2010. I am a newbie but my work have asked me to create a database to store projects. I would like it so as soon as i click the button it would ask for which dates and a combo box to filter the districts. Then it would filter these results to excel? is this possible or too much to ask for?
Mar 10 '17 #1
2 1713
PhilOfWalton
1,430 Expert 1GB
I believe the only way is to create a temporary table holding your filtered results, and then export it using
DoCmd.TransferSpreadsheet
with the appropriate parameters.

After the export, you can delete the temporary table.

Phil
Mar 12 '17 #2
MikeTheBike
639 Expert 512MB
Hi All

I never use DoCmd.TransferSpreadsheet (use automation instead as I can control the look/format of the report), but I think a stored query name could be used instead of a table name. The query could then have the required Filter linked to the filter control on the form that has the DoCmd.TransferSpreadsheet.

Not sure if that helps ...


MTB
Mar 13 '17 #3

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

Similar topics

4
by: Dave Smithz | last post by:
Hi there, When filling out a web form on a php page that is submitted to a search which lists the results based on the criteria provided (in the form), all works fine and as expected. ...
7
by: Nige | last post by:
Is it possible to convert an item of form field data to uppercase using the toUpperCase() method? What I'm really asking is, how do I reference the data item? -- Nige Please replace YYYY...
6
by: skgolden | last post by:
My husband and I own a small temporary labor company and deal with 4 major clients (A,B,C & D), each of which has about 2 dozen units in our tristate area that we deal with (ie, Company A, units...
17
by: stathis gotsis | last post by:
Hello everyone, I am tying to come up with an elegant way to process some input data that come from a form. When the user hits the 'Submit' button, i want the form to appear again with the...
1
by: Ashton12 | last post by:
I have a form with two command buttons and want them to open a separate "work order" form in different ways. The two forms are linked by an ID field. One of the buttons, the "View Work Orders"...
17
by: DeZZar | last post by:
Hi all, I need to regularly backup my database as an Excel file and have been using the File Export option. Problem is I need anyone using the database to be able to do this easily - nopt...
15
by: jt196 | last post by:
I'm trying to create an editable form of fulfilled orders on my system and am running into problems with creating a form based on this query. The field that I need to update (invoice number) is...
1
by: Gerry Goldberg | last post by:
How does a form's FILTER criteria work? If I specify a query in the form's recordsource, and then in VBA specify a form filter criteria, does the filter criteria override what was originally...
1
Daniel B
by: Daniel B | last post by:
I have tried creating a subform where all the data from the tables is present, therefore the user will have to enter information for a new record into each field. This did not allow me to enter data...
0
by: Elaine Huseby | last post by:
I have a form "PartsAndInvoices that has all the parts in the database listed in split form view. I want the user to use Access 2007's filter section on the ribbon to choose mutiple filters....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.