473,796 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best way to let users run SQL?

Is there any way to let users compose and run SQL from the Access interface?
If I create a new query from the Database Window, select Design View and
then View >> SQL View, I get a window from which I can compose and run SQL
queries. What I'd like to do is let users have the ability to run SQL
queries like this against imported tables.

I was thinking I could open the imported table in a form and have a textbox
in which SQL can be entered, and a button to run it.

Does Access have any built-in tools to do this kind of thing?

Thanks in advacne.
Nov 13 '05 #1
4 2403

deko wrote:
Is there any way to let users compose and run SQL from the Access interface? If I create a new query from the Database Window, select Design View and then View >> SQL View, I get a window from which I can compose and run SQL queries. What I'd like to do is let users have the ability to run SQL queries like this against imported tables.

I was thinking I could open the imported table in a form and have a textbox in which SQL can be entered, and a button to run it.

Does Access have any built-in tools to do this kind of thing?

Thanks in advacne.


Yep.
Step 1. Go to bookstore.
Step 2. Find "Access [version] Developer's Handbook (volume I)"
Step 3. Pay for said book.
Step 4. use the code from the CD.
Step 5. Send Ken Getz & Co a thank you note for such great code.

In all seriousness, yes, it's possible. You could get the SQL
scratchpad from the book, and then you could slap a button on it that
prompts for a queryname and then saves the query. Just use
CreateQueryDef. Built-in tools for this? Umm... yeah, it's called the
QBE grid.

I almost suspect this whole post is a joke. You're not for real, are
you? I've read probably most of your posts, and I can't believe you
don't own a copy of the Developer Handbook already. Trust me - it's
$60 well spent. If you don't believe me, read the reviews. I mean,
why should you take my word for it? What do I know? Ask an MVP. At
least they can prove they know something. But if you do serious work
in Access, you're completely nuts (IMHO) not to own it. Save yourself
the trouble of reinventing the wheel.

Nov 13 '05 #2
> I almost suspect this whole post is a joke. You're not for real, are
you?


Look, chump, if you don't like my posts, don't read or reply to them. There
was nothing wrong with that question.
Nov 13 '05 #3
I generally train advanced users in basic relational database design
and queries (and sometimes reports) in a 1-3 day tutorial. I include
loads of exercise problems focusing on their database(s) so that they
can become familiar with it. I have them use the Access query designer
to create queries, just like I do. I may also create a simple but
separate user interface for them to use so that they don't clutter the
normal UI with their queries or accidentally change one of the existing
queries. In the separate UI, I also include a number of dialogs that
they can use with their queries plus a few other features. When they
get stuck, they e-mail me their SQL and I send them back the corrected
SQL with an explanation as to what went wrong.

In the long run, the users become self-sufficient and don't need to
call me for new queries, reports and other things. Many of them enjoy
the challenge of writing their own queries. The result is a win-win
for both myself and the users.

Bill E.
deko wrote:
Is there any way to let users compose and run SQL from the Access interface? If I create a new query from the Database Window, select Design View and then View >> SQL View, I get a window from which I can compose and run SQL queries. What I'd like to do is let users have the ability to run SQL queries like this against imported tables.

I was thinking I could open the imported table in a form and have a textbox in which SQL can be entered, and a button to run it.

Does Access have any built-in tools to do this kind of thing?

Thanks in advacne.


Nov 13 '05 #4
pi********@hotm ail.com wrote:
But if you do serious work
in Access, you're completely nuts (IMHO) not to own it. Save yourself
the trouble of reinventing the wheel.


8)

I'm not sure what your problem is with the OP (I can't see his post) but
what you're saying, based on this post seems to be (Tongue firmly in
cheek!):

1) Everyone buy Kens book

2) Disband cdma!

8)

Are you sure you're not a sock puppet for Ken Getz? Hmmmmm

Just joking, BTW.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #5

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

Similar topics

5
2027
by: John Pastrovick | last post by:
I am not sure what the most effective way to organize a db for users is. I have 40 users (teachers) and 20 tables (grades, assignments, students, etc). Each needs access to its OWN grades, assignemnts, etc. NOW I am not sure how to orgainize users in the DB. Right now I have the code for 1 user and need to adapt it to several users.
5
2391
by: Karthikesh Raju | last post by:
Hi All, i am wondering about the best way to read in a configuration file that goes like: ########### source_dir = '/home/karthik/Projects/python' data_dir = '/home/karthik/Projects/data'
131
21692
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately get some good real world examples. Fire away! :) Regards, Peter Foti
145
8862
by: Mark Johnson | last post by:
Oddly enough, I found it difficult, using Google, to find a list of best-of sites based on the quality of their css packages. So I'd ask. Does anyone know of particularly good sites which are in good measure because of their creative and useful css designs? I'm aware of Zen Garden and a few others. So don't bother with those. And I hope I don't get replies from people with a 'tin ear' and no design sense. Good sites. Good pages. That's...
4
2610
by: Daisy | last post by:
Let's say I've got a forum, where users can be moderators of each forum. Tables look like this: USER -------- user_key name FORUM
0
4250
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com. --------------------------------------------------------------------------------
8
1117
by: rodchar | last post by:
hey all, my vb.net program creates a file a the c:\root but when the users run it they get denied. what are some different ways to resolve this authority issue? what's the best way to do this? thanks, rodchar
3
1047
by: =?Utf-8?B?aXdkdTE1?= | last post by:
Hi, im creating an application that will keep track of what users are logged into a network at a given time. all users must sign ingo this network first, so whenever a user is logged on, i will be notified. I am wondering on what the best collection will be. the number of users will vary (this is an AIM like network) so it needs to be accessed quickly and efficiently. what is the best collection for this? -- -iwdu15
14
5738
by: Keith | last post by:
I have an MDE application used by several hundred people in different parts of the world. The majority of users are of lesser experience computer experience. The app consists of a frontend (MDE) and backend (MDB), a help file and a key file. To this point, I have provided users with an installation package which installed both files into their program files folder with no problems. A few users are getting new computers with vista...
4
1360
by: dgleeson3 | last post by:
Hello All I have three classes Form1, DataBase_Manager and Users. Form 1 creates two object of type DataBase_Manager and Users as below. Public Class Form1 Inherits Form Public DataBase_Manager1 As New DataBase_Manager Public User1 As New Users
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10006
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7547
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.