L lmcc007 Registered User. Local time Today, 15:46 Joined Nov 10, 2007 Messages 635 Jan 29, 2009 #1 Is there a way to do Conditional Formatting like in Excel? Meaning, if [Warranty] = TRUE, go to the [DaysofWarranty] field. But, if [Warranty] = FALSE, skip to the [Charity] field.
Is there a way to do Conditional Formatting like in Excel? Meaning, if [Warranty] = TRUE, go to the [DaysofWarranty] field. But, if [Warranty] = FALSE, skip to the [Charity] field.
C CameronM Registered User. Local time Tomorrow, 06:46 Joined Jan 9, 2009 Messages 147 Jan 29, 2009 #2 Is the Warranty field a text, checkbox or combobox control? As this will change how to access the value and events. If [Warranty] is a checkbox or combobox on your form, you can use the After_Update event to test the condition you want. I have prefixed the fields with the control type I assumed they represent. Code: If cboWarranty = -1 Then txtDaysofWarranty.SetFocus Else txtCharity.SetFocus End If
Is the Warranty field a text, checkbox or combobox control? As this will change how to access the value and events. If [Warranty] is a checkbox or combobox on your form, you can use the After_Update event to test the condition you want. I have prefixed the fields with the control type I assumed they represent. Code: If cboWarranty = -1 Then txtDaysofWarranty.SetFocus Else txtCharity.SetFocus End If
L lmcc007 Registered User. Local time Today, 15:46 Joined Nov 10, 2007 Messages 635 Jan 29, 2009 #3 Thanks CameronM, it's working great!