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

Permissions / Access help

Hello, this is my first post so please be gentle ...
I am trying to filter some data stored in a table and am using a SQL query which writes the filtered data into a table tblLessonTemp

Expand|Select|Wrap|Line Numbers
  1. strSQL = "SELECT snapshots.faculty, snapshots.overallGrade " & _
  2.              "INTO tblLessonTemp " & _
  3.              "FROM snapshots " & _
  4.              "WHERE faculty=(Faculty_txt);"
  5.     DoCmd.SetWarnings False
  6.     DoCmd.RunSQL strSQL
  7.     DoCmd.SetWarnings True
  8.  
  9.  
  10.     Set db = CurrentDb()
  11.     Set tdf = db.TableDefs("tblLessonTemp")
However the database needs to be read only to everyone except a few people. When I simply set the permissions on the server it doesn’t allow the above code to write to tblLessonTemp. What would you recommend as a solution?
Nov 20 '07 #1
3 1065
FishVal
2,653 Expert 2GB
Hi, there.

Could you explain the reason why you want to write filtered records into a separate table?

Kind regards,
Fish

P.S. SQL syntax seems to be incorrect. Is [faculty] numerical field?
Nov 20 '07 #2
I am writing the filtered data into a separate table so I can use one form as a template and then change the information it displays. I use

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "frm_LObs"
  2. Set frm = Forms!frm_LObs
  3. frm.RecordSource = "tblLessonTemp"
Faculty is a string. It is for a school and the reason the data needs filtering is so the Heads of Faculty can only see the information stored on members of their faculty. It is vital that nobody on the basic user level has the ability to see unfiltered data.
Nov 21 '07 #3
FishVal
2,653 Expert 2GB
So why not to set Form.RecordSource to select query.
Expand|Select|Wrap|Line Numbers
  1. SELECT snapshots.faculty, snapshots.overallGrade FROM snapshots WHERE faculty='...faculty name....';
  2.  
Note, string constant to be filtered by is enclosed in single quotes as SQL syntax requires.
Nov 21 '07 #4

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

Similar topics

9
by: Hugh Welford | last post by:
Hi, I have installed IIS5 on my machine so that I can do offline asp web development. (using WIN XP PRO). My machine is called "development" I have published an on-line working web to...
0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
2
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
2
by: Jozef | last post by:
Hello, Is there a way to change table permissions in VB Code? I can't seem to find much that's concise in the help file. Here's the situation; I have a table in the "data" portion of a split...
13
by: John Bowman | last post by:
Hi All, I've got a simple wrapper static test method on a class to expand the environment variables on a specified string: public static string ExpandEnvironmentStr(string Str) { return...
0
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of...
3
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007...
30
by: Adam Baker | last post by:
Hello, I'm writing a site where a handful of people will be able to edit the content using PHP scripts (FCKeditor). The content is stored as individual files in a directory. I'd like to validate...
3
schmals
by: schmals | last post by:
Hello, I am currently writing a simple shell program for UNIX and I've run into a bit of an issue. So, every file has 9 access permissions: read, write, and execute for user, group, and others. ...
3
by: sandromani | last post by:
Hello, I am working at a webbased file browser, where users will be able to access, rename, delete, etc files and folders. My question is, what is the best way to handle permissions /...
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
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
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
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...
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.