Aug 23, 2010 #1 hefly Technical User Feb 6, 2008 134 US I would like to change the back color of a text box on a form if a condition in my query is met. Qry_Colors If [qry_colors].[FieldA] = [qry_colors].[FieldA], then backcolor of TxtBox named Lease_no = #FF0000, otherwise backcolor = #FFFFFF Thank you! Hefly
I would like to change the back color of a text box on a form if a condition in my query is met. Qry_Colors If [qry_colors].[FieldA] = [qry_colors].[FieldA], then backcolor of TxtBox named Lease_no = #FF0000, otherwise backcolor = #FFFFFF Thank you! Hefly
Aug 23, 2010 #2 MajP Technical User Aug 27, 2005 9,382 US look in the help file under conditional formatting. Upvote 0 Downvote
Aug 23, 2010 #3 dhookom Programmer Jun 24, 2003 22,530 US Isn't this always going to be true: Hefly said: [qry_colors].[FieldA] = [qry_colors].[FieldA] Click to expand... Duane Hook'D on Access MS Access MVP Upvote 0 Downvote
Isn't this always going to be true: Hefly said: [qry_colors].[FieldA] = [qry_colors].[FieldA] Click to expand... Duane Hook'D on Access MS Access MVP
Aug 23, 2010 Thread starter #4 hefly Technical User Feb 6, 2008 134 US LOL A sharp eye dhookem. Yes. I meant to write [qry_colors].FieldA = [qry_colors].[FieldB] I've been trying to write the query I want, but I think the correct way to do it is to apply conditional formatting to a DLookup value in tableA. If [qry_1].[String] exists at least once in [tbl_1].[String], then the background color changes. Thanks dhookem Upvote 0 Downvote
LOL A sharp eye dhookem. Yes. I meant to write [qry_colors].FieldA = [qry_colors].[FieldB] I've been trying to write the query I want, but I think the correct way to do it is to apply conditional formatting to a DLookup value in tableA. If [qry_1].[String] exists at least once in [tbl_1].[String], then the background color changes. Thanks dhookem