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

Access Look and Feel - Disabled fields

9
I had a quick look but couldnt find much on this.

What i have is a contiunous form with each row having an 'edit' button. By default all feilds have been set to disabled to stop the user acciddently changing data in the bound tables. Im using code along with MS built in conditional formatting so when the user clicks the edit button on a particular row it makes all the controls enabled for that row and they can then edit the data.

My problem is because they are disabled they look really dull so i wanted to know if there was a way to change the default look and feel of disabled controls? I know if u set the control to locked also it will display the proper look however conditional formatting dosent have an option to unlock a control so i would never be able to have the user edit data the way im doing it. Is there away i can have the controls disabled but still display without being greyed out??

Any ideas form the MVPs?? ;)

Cheers heaps

Mike
Mar 9 '07 #1
3 3983
Rabbit
12,516 Expert Mod 8TB
You can lock the fields, in code you can unlock each of the fields.
Mar 9 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
Hi Mike

The simple answer to your question is no because you are using conditional formatting. One trick I have tried in the past is to set the text to bold as it displays better.

Mary
Mar 10 '07 #3
I used a different approach to prevent accidental data entry. I formated the background to a lighter, different color, then DATA - Locked = Yes on the first three fields (ID, LName and FName - which are used for lookup mainly and data entry later). I wrote a quick procedure to unlock the field on double-click. Works great. Here's an example on the ID field:

Private Sub ID_DblClick(Cancel As Integer)
Me.ID.Locked = False
End Sub

Now when you need to do data entry to change the info or add a new records you just double-click each of the first three fields to enter data - the powers that be did not want a routine to automatically open the fields for new records.
Jul 31 '07 #4

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

Similar topics

30
by: Andante.in.Blue | last post by:
I just browsed through some of my Access links when I came across the Ten Commandments of Access (http://www.mvps.org/access/tencommandments.htm). Some of the points I heartily agree with (and...
4
by: Wayne Aprato | last post by:
I have a simple database which was originally written in Access 97. When converted to Access 2000 file format it ran flawlessly in Access 2002. I've just tried to run it in Access 2003 and I am...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
2
by: djamila | last post by:
Hi, I have one problem with VB.Net using Access database that I couldn't find the solution. I have a form that represents a task with two buttons: the button start which we click first to...
8
by: Sid | last post by:
I hope someone could help me with this. I am trying to setup a criteria to decide when to allow/not allow user to click on the check box. logically it looks simple but I am not able to...
5
by: giandeo | last post by:
Hello Experts. Could you find a solution for this problem please! I have the following tables in Access Database Table Name: origin Fields Names: country, countrycode Table Name: make...
7
by: kpresidente | last post by:
Hello all, I'm trying to transfer the value of a control on an Access form to an Excel worksheet using VBA. The Access form is a single form with all the controls disabled, so that data is "read...
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
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,...
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...
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
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...

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.