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

Automate Make Table Query

fnwtech
48
I have an access database (2000 format) that I added a make table query to the login to limit user access to their particular school. When this query runs, users see a warning that the current data in the table will be overwritten and do they want to continue. I have two questions.

First, I have very limited vb skills, but is there a way to automatically accept Yes so users won't see the warning?

Second, this is a shared database, will this effect users currently logged in?

Thanks!
Oct 22 '07 #1
9 4668
fnwtech
48
Oh, and yes I have unchecked Confirm Action Queries...
Oct 22 '07 #2
ADezii
8,834 Expert 8TB
I have an access database (2000 format) that I added a make table query to the login to limit user access to their particular school. When this query runs, users see a warning that the current data in the table will be overwritten and do they want to continue. I have two questions.

First, I have very limited vb skills, but is there a way to automatically accept Yes so users won't see the warning?

Second, this is a shared database, will this effect users currently logged in?

Thanks!
First, I have very limited vb skills, but is there a way to automatically accept Yes so users won't see the warning?
Yes there is:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SetWarnings False
  2.   DoCmd.OpenQuery "qryMakeTableQueryName", acViewNormal, acEdit
  3. DoCmd.SetWarnings True
Second, this is a shared database, will this effect users currently logged in?
If your Users are accessing the data in this Table either directly or indirectly when the Make Table Query executes, and the current data is being overwritten, I do believe you will experiencing a score of unwelcome problems!
Oct 22 '07 #3
fnwtech
48
You were right ADezii, this will not work. I tested this out and because I have record locking set and it locks everyone out until the first person logs out. Guess I need to do more research!

Thanks
Oct 23 '07 #4
Curben
47
I have an access database (2000 format) that I added a make table query to the login to limit user access to their particular school. When this query runs, users see a warning that the current data in the table will be overwritten and do they want to continue. I have two questions.

First, I have very limited vb skills, but is there a way to automatically accept Yes so users won't see the warning?

Second, this is a shared database, will this effect users currently logged in?

Thanks!
I would like to question WHY?
This seems related to an item i dealt with and may have a different path for you to take should your reasoning be similiar enough
Oct 23 '07 #5
ADezii
8,834 Expert 8TB
You were right ADezii, this will not work. I tested this out and because I have record locking set and it locks everyone out until the first person logs out. Guess I need to do more research!

Thanks
No problem. Take a few minutes and look at these 2 Tips of the Week. They may point you in the right direction.
Passive Shutdown
How to Generate a User List
Oct 24 '07 #6
fnwtech
48
I originally created this database for use by one school to track local assessment scores. This year four schools will be using it. I was hoping to use the make table query to allow access to the subset of students within a particular school. This database is set to record lock as several people need to add grades for each student. So, with the make table query, the first person who logs in locks the table to other users. Basically, only one person could be logged in at a time.

For this year I have finally decided that I will need to use four copies of the database while I learn more vb!
Oct 25 '07 #7
Curben
47
I originally created this database for use by one school to track local assessment scores. This year four schools will be using it. I was hoping to use the make table query to allow access to the subset of students within a particular school. This database is set to record lock as several people need to add grades for each student. So, with the make table query, the first person who logs in locks the table to other users. Basically, only one person could be logged in at a time.

For this year I have finally decided that I will need to use four copies of the database while I learn more vb!
ok well here is an idea in the mean time if you can use Record-level Locking instead.
I would assume that somewhere in the tables a field contains the specific school. Base queries on that as either a filter or criteria and lock the forms to only be accessable by users of that school.

using the switchboard you can have a main user interface where you select your school, and then have a selection of forms.

Combining the two, users would only see the forms for their location and if the choose the wrong location would be denied access as well. With simple VBA you can change the error message to specifically say "You are not authorised for this form at this school, Please Verify that you have the correct school. If you feel you received this message in error, please contact your administrator."
Oct 25 '07 #8
fnwtech
48
so basically duplicate all the queries, forms for each school?
Oct 26 '07 #9
Curben
47
so basically duplicate all the queries, forms for each school?
Aye
On one hand its messy, on the other, It works for now. There might be a better way to filter the form based on user ID using a complicated VBA that i do not know the method, nor how easy it really is.
Oct 26 '07 #10

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

Similar topics

2
by: aj | last post by:
DB2 WSE LUW 8.1 FP5 Red Hat AS 2.1 I would like to grant a new database user the same privileges (across many tables and views) that a current user has. Rather than doing it by hand, might...
4
by: Chris via AccessMonster.com | last post by:
I have the challenge of needing to automate table creation. It doesn't end there the tables have to be created from one table that looks something like this... Email ...
4
by: Chris via AccessMonster.com | last post by:
I have a form with a combo box and button that creates tables based on a group of records by a variable name of a value in a field. The combo box holds the values and the button executes the code...
2
by: Phil Latio | last post by:
We have despatch process which kicks out picking information into text files at hourly intervals. The text files are named sequentially by process; 'ABC.txt', 'ABC01.txt', 'ABC02.txt' for one...
25
by: MLH | last post by:
In an earlier post entitled... "A97 closes down each time I open a particular report" it has been suggested that I rebuild problematic table - one in which some corruption has occurred. I...
1
by: Liam.M | last post by:
I currently HAVE a form...a "Summary List" it could be called...which is a contineous form...AND on this form are "Four fields" from EVERY record (each on their own line) so to seak...like a...
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
2
by: drwigginton | last post by:
Hello. I have a table in an Access 2003 database, tblDataDump, that accepts data imported from an Excel spreadsheet. The data is processed through a make table query that performs some simple...
1
by: dez5000 | last post by:
I need to extract some data from a MySQL database and export the results daily. I currently have to manually run a query in MySQL and then export the results as a text file that I then link to an...
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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...
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...

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.