Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Formatting in Access2K

Status
Not open for further replies.

tgalownia

Technical User
Jan 7, 2003
68
0
0
US
I am working on a form in a database I am working on for a non profit. It is on a tab control. I am trying to conditional format the name of a person based of if they receive services, provide services or both.

tblContacts is pretty standard
FName
MI
LName
Address
City
State
Zip
RecServices (check box)
ProvServices (check box)

I orignally wanted to use the check boxes but the Conditional Formatting doesn't work when both are checked. (e.g. if both fields are checked it formats to RecServices as that is the first formatting option)

I opted to use an option box as there are only three options. tblContact has the field "Services" formatted as text.
Receive Services is set at 1
Provide Services is set at 2
Both is set at 3
I am using the code below to use the Conditional Formatting however there is something not working. Does anyone have a clue?

DLookUp("[LName]","tblContacts","[Services] = 1")

Any help would be greatly appreciated

 
[Services]=1
[Services]=2
[Services]=3
Worked. I made it more difficult than it should have been thank you anyways.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top