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

Read only version of a form.

I have an access form that has VB code to enable and disable individual
fields depending on the state of other fields. That works great.

However, now I am looking to create a read only version of these forms
so that managers can review data entered without messing it up. Is it
possible to call these forms as read only? My concern is I am not sure
if it is possible to call the forms as read only without having the
sections of VB code that selectivly enables fields override the fact
that this person is read only.

Is that possible? If so how would I call the form? Currenly I lock
fields on a field level so I am not sure how to do it on a form level.

Nov 13 '05 #1
2 2003
If you use the AllowEdits, AllowAdditions, and AllowDeletions properties of
the form (set them to No/False) you can set the form to "read only"
regardless of what you do to the controls individually. Another option would
be to set the RecordSet property of the form to Snapshot instead of Dynaset.

--
Wayne Morgan
MS Access MVP
<td*******@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I have an access form that has VB code to enable and disable individual
fields depending on the state of other fields. That works great.

However, now I am looking to create a read only version of these forms
so that managers can review data entered without messing it up. Is it
possible to call these forms as read only? My concern is I am not sure
if it is possible to call the forms as read only without having the
sections of VB code that selectivly enables fields override the fact
that this person is read only.

Is that possible? If so how would I call the form? Currenly I lock
fields on a field level so I am not sure how to do it on a form level.

Nov 13 '05 #2
You can set the AllowEdits, AllowAdditions and AllowDeletions all to False

td*******@yahoo.com wrote:
I have an access form that has VB code to enable and disable individual
fields depending on the state of other fields. That works great.

However, now I am looking to create a read only version of these forms
so that managers can review data entered without messing it up. Is it
possible to call these forms as read only? My concern is I am not sure
if it is possible to call the forms as read only without having the
sections of VB code that selectivly enables fields override the fact
that this person is read only.

Is that possible? If so how would I call the form? Currenly I lock
fields on a field level so I am not sure how to do it on a form level.


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #3

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

Similar topics

21
by: Gavin | last post by:
Hi, I'm a newbie to programming of any kind. I have posted this to other groups in a hope to get a response from anyone. Can any one tell me how to make my VB program read the Bios serial number...
15
by: Håkan Persson | last post by:
Hi. I am trying to set up a simple HTTP-server but I have problems reading data that is beeing POSTed. class httpServer(BaseHTTPServer.BaseHTTPRequestHandler): def do_POST(self): input =...
0
by: SeanR | last post by:
I have a function to copare two files. It will first copy the original file form a different server to a local temp path and then compare that version to a version that has been restored form tape....
7
by: KantKwitDansin1 | last post by:
I have a file "a.dat" containing 10^4 32 bit binary numbers. I need to read in these numbers and deterimine if they are prime. The primality part I will have to figure out later, but I was...
12
by: James Norton-Jones | last post by:
Hi, Am I trying to hold the data of a DataGrid in a label so that when the form is reposted the DataGrid can be repopulated. The problem I am having is that I don't understand how to get the...
7
by: Martin Bischoff | last post by:
How can I set the assembly version in an ASP.NET 2.0 project? I have added a file AssemblyInfo.cs containing the version number to my project's App_Code folder. When I try to read the version...
7
by: Alan | last post by:
I have a main form frmMain and second form frmMember, I declare a variable at the top of the frmMember as Dim memberStr as String In the main form, Dim MemberForm as frmMember
4
by: Josema | last post by:
Hi to all, Im searching a hand to solve an Exception that i get when i try to give the user to a gmail account... Any help would be appreciated.. Thanks in advance This is a piece of my...
7
by: PetterL | last post by:
I have a setting called My.settings.firstrun set to True, set in the setting manager. When i read this in the first form form_Load in a IF sentence it always come out as false. I have tried to...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.