473,468 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

using an on-the-fly query in a read-only database

I have an Access database in a network folder that only a few users
have write access to. I'd like other users to be able to query the
database but not update records. The problem is the code I'm using in
my main search form:

CurrentDb.QueryDefs("qryPubs").SQL = strSQL
RefreshDatabaseWindow
Me.RecordSource = "qryPubs"

When a user without write access to the folder tries to open the form,
they get run-time error 3027 (Cannot update. Database or object is
read-only.) I'd rather not have to move my database out to a public
folder. Is there another way to set my form's record source to an
on-the-fly query?

TIA.

Katherine

Nov 13 '05 #1
4 1391
split front end from back, relink, and distribute the front end to the
users. Then they can modify the FE all they want.

Nov 13 '05 #2
Skip the QueryDef.
Just use this:
Me.RecordSource=strSQL

"Katherine Hanson" <er***************@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I have an Access database in a network folder that only a few users
have write access to. I'd like other users to be able to query the
database but not update records. The problem is the code I'm using in
my main search form:

CurrentDb.QueryDefs("qryPubs").SQL = strSQL
RefreshDatabaseWindow
Me.RecordSource = "qryPubs"

When a user without write access to the folder tries to open the form,
they get run-time error 3027 (Cannot update. Database or object is
read-only.) I'd rather not have to move my database out to a public
folder. Is there another way to set my form's record source to an
on-the-fly query?

TIA.

Katherine

Nov 13 '05 #3
Ola K:
Actually the problem is not so much your query, but the fact that
anytime an Access database is opened, a locking database (.ldb) is
created to manage.record locks. If the logging on user does not have
Operating System write rights, the db open fails with that error.

Since the problem is the OS and not Access, there's really nothing you
can do but work around the rights issue. Possibly you could create a
separate folder for this application and give all of your users write
access to it, or create a dummy user that only has access to that
single folder. Alternatively, you could webify the query and connect
thru IIS <== (another whole rights issue!).

I'm out of ideas...

rock and roll
King Ron of Chi

Nov 13 '05 #4
MacDermott wrote:
Skip the QueryDef.
Just use this:
Me.RecordSource=strSQL


Perfect! Thanks so much for your help, everyone.

Katherine

Nov 13 '05 #5

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

Similar topics

2
by: vishal | last post by:
hello friends i have one php script which generates html page containing form. what i want is submit this form using php script. pls give me some idea that how can i submit form using php...
11
by: TheDD | last post by:
Hello, i don't manage to use the tolower() function: #include <algorithm> #include <iostream> #include <locale> #include <string> using std::cout;
3
by: clintonG | last post by:
Briefly stated, my problem is accessing and 'setting' properties of a label control declared in the template of another control noting that the other control is an instance of the beta 2...
0
by: Bryan Parkoff | last post by:
I break one U_WORD variable into two U_BYTE variables. I prefer to manipulate two U_BYTE variables instead of one U_WORD variable using Carry. Please look at my example using U_WORD variable...
7
by: Vincent Nguyen | last post by:
Hi, Does anyone know how call Win32 native API GetTokenInformation() by using C#? Any sample code would be helpful. Thanks! Vincent
3
by: xzzy | last post by:
I was wondering why we have to have using System.Data using System.Configuration using etc.... why are they not all lumped into one 'using'? In other words, is there a best way to use...
22
by: phil.pellouchoud | last post by:
I did some searching online and i couldn't find anything in reference to this. I am using MinGW, gcc 4.3 and am having the following compilation issue: class CFoo { public: ...
14
by: KK | last post by:
Dear All I have a small problem with using as operator on value type array. Here is an example what I am trying to do. using System; using System.Collections.Generic; using System.Text;
6
by: =?Utf-8?B?Unlhbg==?= | last post by:
I am trying to pass a value from a texbox in Form1 to a textbox in Form2 using properties in VS2005 but it doesn't work; please help (project is attached). Code for Game Class: using System;...
3
by: vipin sharma | last post by:
hello all, i am using netbeans ide for development. I want to display a graph on screen. After some search on google i found that we can create a graph by following steps: 1. extending a class with...
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.