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

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 2380

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********@hotmail.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
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,...
5
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 =...
131
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...
145
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...
4
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
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...
8
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? ...
3
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...
14
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)...
4
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.