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

How to change table access to view only?

167 100+
I have a form that has buttons on it to access tables. I want to be able to set it so certain tables can be viewed only when they click the button and NOT edited. I cannot seem to find the method I need to use to do this.
Dec 11 '07 #1
6 1565
Rabbit
12,516 Expert Mod 8TB
The third parameter of the OpenTable method lets you choose how to open the table.
Dec 11 '07 #2
missinglinq
3,532 Expert 2GB
The fact of the matter is, except in the early stages of development, tables should never be used for editing/entering data! Forms should always be used for this purpose! And even using tables for viewing records, if there are more than a handful, is adding an undue burden on the end users, as data in a table has no order! The forms don't have to be fancy; they can be run up in a few minutes using the Forms Wizard if necessary.

Linq ;0)>
Dec 11 '07 #3
NeoPa
32,556 Expert Mod 16PB
The only way I know to stop the operator looking at tables however they want, is in Tools / Startup... / Show database Window.
Clear that setting and everything should go via your forms.
Dec 12 '07 #4
ncsthbell
167 100+
Sorry, I wasn't as clear as I should have been. I have a button on a 'table maintenance' form, when you click 'emp names' it opens a form 'TM_EMP', this form is designed for data entry and/or viewing. What I want to do is only allow viewing, not editing. So, is there anyway when this form is opened that I can chnage some setting or option that will only allow viewing, not editing. Or, do I just set the properties to each column on the form to 'locked'???
Dec 18 '07 #5
missinglinq
3,532 Expert 2GB
In the Form Load event put

Me.AllowEdits = False

Linq ;0)>
Dec 18 '07 #6
NeoPa
32,556 Expert Mod 16PB
In the design of the form, open up the properties and set "Allow Edits" to No.
If you ever need to have "Allow Edits" set to Yes then Linq's code is worth using. If it's ALWAYS no then it's probably better to set it in the design of the form itself (although Linq's code will work in all circumstances).
Dec 18 '07 #7

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

Similar topics

1
by: MR71 | last post by:
I've created a SQL View in SQL 2000 using a table that has columns defined as Numeric data type. In the view, I am grouping and summing. When I link the view via ODBC to Access, all of the data...
2
by: J.Beaulieu | last post by:
Hi I'll have probably to use sql server soon but prior to that I have a question concerning priviledges and security. Is it possible for someone to do like in access, ie creating a db/table...
4
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
5
by: ronchito | last post by:
Hi, I have a database that contains only one table. This table contains highly confidential/unique information that, if viewed or copied as a whole, would give away much of my company's...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
13
by: nyt | last post by:
I have a problem of number and text field. I got the database file(mdb) that contains many combo boxes used and its list values are created by "value list" For eg field Field name= 'furniture'...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
5
by: wugon.net | last post by:
question: db2 LUW V8 UNION ALL with table function month() have bad query performance Env: db2 LUW V8 + FP14 Problem : We have history data from 2005/01/01 ~ 2007/05/xx in single big...
10
by: jambonjamasb | last post by:
Hi all, I am new to this and am looking for some direction I have the ideas, but am having trouble putting it into practice. Any help would be greatly appreciated. I have set up three tables. ...
8
by: mlwerth | last post by:
Dear Access Group: This is the most basic and most embarrassing of questions, but I cannot find where to change the data type of a text field that I have in Access 2003 to a number field. I've...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
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.