Formatting a field in Datasheep view

M

Mark O

Hello,

I have a the following:

MyTable consisting of two fields and 3 records:
===============================================
Field 1: MyText Text (50)
Field 2: BoldIt Yes/No

This is text for Record1 No
This is text for Record2 No
This is text for Record3 No

MyMainForm containing MySubform.
MySubform displays MyTable in Datasheet view.

Problem:
I want to be able to click the BoldIt checkbox for the second record and
have only 'This is text for Record2' display in Bold font. Clicking the
same BoldIt checkbox again should unbold 'This is text for Record2'.

Thanks in advance.
Mark
 
S

Steve Schapel

Mark,

This is not possible in a table or datasheet.

In a Form in Continuous view, however, you can use Conditional
Formatting to achieve what you want here.
- Select the MyText textbox in design view of the form
- select Conditional Formatting from the Format menu
- In the 'Expression is' box, enter...
[BoldIt]=Yes
- Use the formatting controls to set it to bold font.
 
R

Ron2006

It is possible in a datasheet if you use conditional formating.

With the same logic and steps as Steve said for continuous forms


Ron
 
S

Steve Schapel

Well, what do you know! Thanks, Ron. In all my years as an Access
developer, I think I have only ever used a datasheet one time, so my
lack of experience showing here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top