473,399 Members | 2,478 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,399 software developers and data experts.

Creating a simple standalone query

I'm a database marketing manager for a small non-profit. I created a
query that prompts you for a company name and then pulls a list of all
of our contacts in the database in that company. Our sales folks are
always asking for company contact lists and I just plug it in to this
query and send them the list in excel.

I want to give them the capability of using this query themselves
without going through me. But I want them to do this without having to
open up Access, shuffle through all the tables and queries that make up
this query to find this query and then running it. Ideally I would
love to have a shortcut in one of our network drives that they click on
and it automatically prompts them for the company name.

Do you know the best way to do this? Any advice appreciated.

Thanks!

Nov 13 '05 #1
5 2214
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If the query prompts for a parameter, Access has to open to display the
prompt. You could set up a VBA macro in Excel that uses ADO or DAO to
get the data from the Access DB. It would have an Excel prompt to get
the parameter. That parameter would be used in the macro to get the
data from the db & the results would be inserted into wherever the user
has placed a cursor; or a specified cell.

Read the Excel VBA Help to figure out how to do this. If you don't know
VBA & DAO/ADO hire someone who does.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQl7RSIechKqOuFEgEQJAogCfTqCTKUSgJ7guO+H05ztb2p 8vZuoAoJ6T
JwIQMAnF5y2a7LmTzz6Dk5gn
=3gE3
-----END PGP SIGNATURE-----
li*****@msn.com wrote:
I'm a database marketing manager for a small non-profit. I created a
query that prompts you for a company name and then pulls a list of all
of our contacts in the database in that company. Our sales folks are
always asking for company contact lists and I just plug it in to this
query and send them the list in excel.

I want to give them the capability of using this query themselves
without going through me. But I want them to do this without having to
open up Access, shuffle through all the tables and queries that make up
this query to find this query and then running it. Ideally I would
love to have a shortcut in one of our network drives that they click on
and it automatically prompts them for the company name.

Nov 13 '05 #2
Yes, the query prompts for a parameter. I would like to stay away from
VBA if possible - we don't have a programmer on staff and we don't have
the money to hire someone. I'm really looking at a simple solution.
If there isn't a simple solution, I'll just create a simple database
for them to use.

Nov 13 '05 #3
On 14 Apr 2005 13:10:29 -0700, li*****@msn.com wrote:
I'm a database marketing manager for a small non-profit. I created a
query that prompts you for a company name and then pulls a list of all
of our contacts in the database in that company. Our sales folks are
always asking for company contact lists and I just plug it in to this
query and send them the list in excel.

I want to give them the capability of using this query themselves
without going through me. But I want them to do this without having to
open up Access, shuffle through all the tables and queries that make up
this query to find this query and then running it. Ideally I would
love to have a shortcut in one of our network drives that they click on
and it automatically prompts them for the company name.

Do you know the best way to do this? Any advice appreciated.

Thanks!

You could use a small Visual Basic program to do this. If you use VB,
I can explain the details to you if you are not familiar.

The database will not open and you can keep it "safe" from the users.

Greg
Nov 13 '05 #4
li*****@msn.com wrote in
news:11**********************@g14g2000cwa.googlegr oups.com:
Yes, the query prompts for a parameter. I would like to stay
away from VBA if possible - we don't have a programmer on
staff and we don't have the money to hire someone. I'm really
looking at a simple solution. If there isn't a simple
solution, I'll just create a simple database for them to use.

All you have to do is create a form use the form design wizard to
put 2 buttons on the form, the first one runs the query. the second
quits the application. The wizards make this easy. Once the form
works to your satisfaction, seletc tools->startup from the menubar.
Fill in the form name in the box.

Now create a shortcut and send it to the users. have them copy it
to their desktop.

All done. Good luck.
--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #5
Any reason why you can't let them query your database directly from
Excel for themselves?
in Excel:
Under the Data menu,
Import External Data,
New Database Query...

from there the wizard pretty much walks you through the whole thing,
and they can dump all the data into Excel for themselves.

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt D | last post by:
I attempted to create a view in SQL Server 2000 that Unions two queries. The first part of the query gets data from the local server, the second part gets info from a linked server. (The query...
2
by: Iain Miller | last post by:
Now this shouldn't be hard but I've been struggling on the best way as to how to do this one for a day or 3 so I thought I'd ask the assembled company..... I'm writing an application that tracks...
5
by: Henry Su | last post by:
Hello All, I am looking to whip a recordset out of thin air through a series of database record manipulation (so there is no physical equivalence to any database entities such as a table or...
5
by: Mike Turco | last post by:
What is the difference between creating relationships in the front-end vs. the back-end database? I was trying to create a relationship in a database front-end and noticed that I could not check...
7
by: smith_lannynospam | last post by:
I was wondering if it is possible to create simple queries with the data included in the select statement, similar to how you use the word VALUES (x1,x2,...) in in INSERT statement. The reason I...
16
by: Asaf | last post by:
I am trying to create and use a COM object with C#.NET 2005. The assembly is set to "Register for COM interop" but when I am trying to call it from VB on Word 2003 I am getting this error: ...
17
Motoma
by: Motoma | last post by:
This article is cross posted from my personal blog. You can find the original article, in all its splendor, at http://motomastyle.com/creating-a-mysql-data-abstraction-layer-in-php/. Introduction:...
4
by: Marijn | last post by:
Hey everybody, The following has been posted before (2 years ago) but no response was added. Therefor again, the following code for creating xhtml file: <?php error_reporting(6143); ...
1
by: koti9876 | last post by:
hi, I am creating xml file like this cn = new OleDbConnection(CONN_STRING); da = new OleDbDataAdapter("select satisfactoryitemcount as ConsumerRating from inspection where...
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: 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
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
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...

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.