Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 8th, 2006, 09:11 AM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Colored Rows in Continuous Form

In a continuous form, is there a way to 'highlight' (change backcolor) of either the entire row or even just one field of the form.

For example, if we have the following table:

CUSTID STATUS

328893 Current
229338 Closed
993002 Current

I would like the backcolor to change to yellow where status='Closed'. This is easy enough to do in a report;

if me.status = 'Closed' then
 me.status.backcolor = vbYellow 'in the detail_print event.
end if

However, I cannot find the equivalent for a continuous form.

Thanks in advance.
Kevin Scott
 
Old June 8th, 2006, 11:45 AM
Authorized User
 
Join Date: Jan 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With ac2K+ you can use conditional format on TextBoxes in a continuous form if the control is bound.

HTH RuralGuy (RG for short) acXP WinXP Pro
 
Old June 8th, 2006, 12:05 PM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx RG.. I'm using Access 2002 in WinXP. I can put a textbox on the row somewhere no problem.

Do you have any more details on how to use this "conditional format" functionality.
 
Old June 8th, 2006, 12:21 PM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

RG!!! Figured it out rereading your response. Thank you so much for that tip.

Very appreciated!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
colour continuous form palmer Access 4 July 29th, 2009 03:26 AM
Continuous Form - Images nilkanth Access 9 July 29th, 2009 02:30 AM
Loop through records on Continuous Form paulcbyrum Access 1 May 13th, 2008 06:28 AM
Continuous form / SetFocus help dbartelt Access 5 February 13th, 2006 03:59 PM
Embedding subforms onto continuous form roniestein Access 4 September 5th, 2003 07:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.