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

Form Datasheet Formatting

How does Stephen Lebans make the datasheet row color
change by clicking a row's check box field?

I cant find any code associated with the form, and I
cant tell if you have created a class on the form or
not, or even "sub classed" the form or check box.
Is there a dll that was pre-loaded?
All I can do is guess....
Can you let me know how you do it?

TIA

Nov 13 '05 #1
4 3267
On 21 Dec 2004 05:15:36 -0800, ce*******@yahoo.com wrote:

I didn't check his code, but it is probably done declaratively using
Format / Conditional Formatting.

-Tom.
How does Stephen Lebans make the datasheet row color
change by clicking a row's check box field?

I cant find any code associated with the form, and I
cant tell if you have created a class on the form or
not, or even "sub classed" the form or check box.
Is there a dll that was pre-loaded?
All I can do is guess....
Can you let me know how you do it?

TIA


Nov 13 '05 #2
Re: A2KConditionalFormattingVer27.mdb

I downloaded his sample database, and the field 'format' property was
the first thing I checked. That's why I assumed it must be code. But I
cant find anything. It will be nice if it's something simple that I'm
overlooking, but I suspect not. Only Stephan knows.
I appreciate what he's done, I think it's fabulous, but I can't use it
if I dont know the specs. or how to manipulate it.

I also experimented with the check box and the associated text boxes.
There seems to be some kind of awareness between them.

The check box can be any new check box from the 'toolbox' tool bar,
but....it's name MUST be "txtcusActive".

The text box has to be a COPY of the one used in the sample database.
It's name can be anything...
I also noticed if you use the format painter on a new text box, it
inherits the properties of the sample db text box.

The text box seems to be aware of the 'txtcusActive' check box state
and responds by changing color.

If I haven't overlooked anything, this tells me that the TEXT BOX is
sub-classed or whatever the process it called when you take a standard
windows control and add more funtionality to it.

I'd love to use it, but if I cant manipulate the color or how it
responds, I just simple cant. It's an excellent trick, though.
Still waiting for an answer...

Nov 13 '05 #3
My apologies to all,
after considerable experimentation and research, I have found the
issue.

In 2000 ( I'm not sure of 97 or below)
Each text box and combo box has a 'FormatConditions' collection and in
the collection
you can store a 'FormatCondition' object.
Each object stores the 'conditions' in which the control may change its
format. Simple.
Even simpler....Click the control (text or combo)...then click the menu
'Format | Conditional Formatting...'
There it is, plain and simple to use.

See 'FormatCondition' object in Access 2000 help.
I suspected it would be simple...sorry 'bout that!

Nov 13 '05 #4
Since the sample MDB is to demonstrate the use of Conditional Formatting
I thought it was safe to assume that inquiring minds would at least
examine the ConditionalFormatting for the affected controls.

Select any of the TextBox controls(or all of them) in form Design view
From the Format Menu select Conditional Formatting

Notice the Condition 1 is setup as:
Expression Is [txtcusActive]
The Font is Bolded with a Red Forecolor.

So when CF evaluates each row, if the txtCusActive CheckBox control is
equal to TRUE then it will apply the Conditional Formatting to the
TextBox control.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<ce*******@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Re: A2KConditionalFormattingVer27.mdb

I downloaded his sample database, and the field 'format' property was
the first thing I checked. That's why I assumed it must be code. But I
cant find anything. It will be nice if it's something simple that I'm
overlooking, but I suspect not. Only Stephan knows.
I appreciate what he's done, I think it's fabulous, but I can't use it
if I dont know the specs. or how to manipulate it.

I also experimented with the check box and the associated text boxes.
There seems to be some kind of awareness between them.

The check box can be any new check box from the 'toolbox' tool bar,
but....it's name MUST be "txtcusActive".

The text box has to be a COPY of the one used in the sample database.
It's name can be anything...
I also noticed if you use the format painter on a new text box, it
inherits the properties of the sample db text box.

The text box seems to be aware of the 'txtcusActive' check box state
and responds by changing color.

If I haven't overlooked anything, this tells me that the TEXT BOX is
sub-classed or whatever the process it called when you take a standard
windows control and add more funtionality to it.

I'd love to use it, but if I cant manipulate the color or how it
responds, I just simple cant. It's an excellent trick, though.
Still waiting for an answer...


Nov 13 '05 #5

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

Similar topics

3
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
2
by: Terry | last post by:
I have cerated a Form, ExamsFrm, which is used to input details of exams taken at several Centres. It dosplays details from StudentTbl and has a SubForm which displays details from ExamsTble. I...
2
by: PC Datasheet | last post by:
Does anyone have a technique for grouping in a form like grouping in a report and still be able to enter data in the form? Thanks for all responses, Steve PC Datasheet
2
by: Sean | last post by:
Dear All, I have a table with many fields the relevant ones being ,,,. The table contains (at present) 16 records. I would like to create a form which displays these fields (preferbally in...
3
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to...
1
by: sasan3 | last post by:
when I set visible=false, then entry is not visible in form view, but still shows up in datasheet view. How do I make a field not to show based on some condition in datasheet view? Tx.
5
by: Newbie | last post by:
I would like to display certain columns from a table on a form. One of my columns that I want to show is a Yes/No field so that my users can pick their players for a fantasy football week. If...
2
by: keri | last post by:
I would like to set up conditional formatting on a form. One of the fields on the form is a date (). If the calldate field is over 365 days ago I would like all the other fields on the form line...
2
by: mattloflin | last post by:
First off I have searched on this forum and others for about 1.5 hours and can't find relevant information. I have a form that is in viewsheet or datasheet mode so when you click it it looks like...
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:
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
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,...

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.