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

User generated export queries

Nathan H
104 100+
I am curious if something is possible. I would like to set up a method for which an end user could create their own queries for export, much like you can do in most AS400 systems. I am trying to plan for as many pre-built queries as possible...but obviously can not plan for every possible scenario. These are runtime packaged databases, so db window is not available. Any ideas on how this could be done? ...I will worry about security issues later, just curios if this is possible.
Dec 22 '07 #1
4 1335
I am curious if something is possible. I would like to set up a method for which an end user could create their own queries for export, much like you can do in most AS400 systems. I am trying to plan for as many pre-built queries as possible...but obviously can not plan for every possible scenario. These are runtime packaged databases, so db window is not available. Any ideas on how this could be done? ...I will worry about security issues later, just curios if this is possible.
You could use SQL language and set it to a recordset object.

such as:

Expand|Select|Wrap|Line Numbers
  1. Dim SQL As String
  2. Dim rsSet As Recordset
  3.  
  4. SQL = "SELECT field1, field 2 FROM table1"
  5. Set rsSet = CurrentDb.OpenRecordset(SQL)
  6.  
I don't know if this is what you meant or not. Search SQL on the web--you can do anything that you can do in query design view with SQL. As a matter of fact if you ever design a query in design view you can change the view to 'SQL' and see the SQL part of it.

Zach
Dec 22 '07 #2
puppydogbuddy
1,923 Expert 1GB
I am curious if something is possible. I would like to set up a method for which an end user could create their own queries for export, much like you can do in most AS400 systems. I am trying to plan for as many pre-built queries as possible...but obviously can not plan for every possible scenario. These are runtime packaged databases, so db window is not available. Any ideas on how this could be done? ...I will worry about security issues later, just curios if this is possible.

Nathan,
Yes, you can. See this link for a free download that is a working demo of one way you can construct flexible query facility.

http://www.candace-tripp.com/utterangel.aspx#22
Dec 22 '07 #3
Nathan H
104 100+
Nathan,
Yes, you can. See this link for a free download that is a working demo of one way you can construct flexible query facility.

http://www.candace-tripp.com/utterangel.aspx#22
Thanks PDB,

this is pretty close to what I am looking for. Have you played around with this demo? What I would really like to do is be able to let the user "drop" fields into the query result. A table would pop up and then they could select which fields to use in the select query, assuming that the user does not understand SQL. It would be almost like using the query wizard, but in form view.

I hope I am making sense of what I am trying to envision.

Nathan
Dec 23 '07 #4
puppydogbuddy
1,923 Expert 1GB
Thanks PDB,

this is pretty close to what I am looking for. Have you played around with this demo? What I would really like to do is be able to let the user "drop" fields into the query result. A table would pop up and then they could select which fields to use in the select query, assuming that the user does not understand SQL. It would be almost like using the query wizard, but in form view.

I hope I am making sense of what I am trying to envision.

Nathan
Hi Nathan,

Your explanation of what you want is very clear. Check these three downloads out.It has been a long time since I played around with them, but as best as I can remember, these are closer to what you want.


CreateQueryFields.mdb
CreateMultiSelectQuery.db
CreateQuery5.mdb

http://www.rogersaccesslibrary.com/TableOfContents3.asp


So that you are aware, the site requests a voluntary $1 donation for each mdb you download.
Dec 23 '07 #5

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

Similar topics

2
by: JMCN | last post by:
is it possible to export multiple queries into one workbook, having each query as separate worksheet? i cannot specify a range because the records will change on a daily basis as for query size. i...
1
by: Gilz | last post by:
Hi I am having trouble with the transfertext acexportdelim function. I have written several routines that export queries with date fields. I have put format statements in the download queries...
1
by: smaczylo | last post by:
Hello, I've recently been asked to work with Microsoft Access, and while I feel quite comfortable with Excel, I'm at a complete loss with databases. If someone could help me with this issue I'm...
5
AccessIdiot
by: AccessIdiot | last post by:
Hi all, I have a bunch of queries (about 40) that right now I am exporting one by one to excel. Is there a way to do a mass export? With the "save formatted" box checked? I don't want to have this...
1
by: Pauline | last post by:
Dear all, I have an enormous database (Access 2003) containing sales information, and an Excel tool to enable end users to do planning and forecasting. Untill now I would create several queries,...
3
by: jmarcrum | last post by:
I want to export a report (that contains two separate queries, 1. Current year data, and 2. split-year data) from access into excel, but everytime I run my code and export the data to excel, it looks...
3
by: Ty | last post by:
I was given a Excel spreadsheet with Employee names. I have a large database with a Personal Table with Employee names and a whole list of other tables that I'm used to running queries. I'm still...
17
by: chadh | last post by:
Hello, I'm having some troubles exporting a query to a csv file. I am able to use the doCMD.TransferText to output the query to the csv file, however, I cannot get it to use the Export...
2
by: Marisol2 | last post by:
I have some queries in Access 2003 db that I have setup to display as pivots. I can go into design pivot table view and click on and then click on Export to Office MicroSoft Excel. The problem is I...
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:
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?
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...

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.