ms access - Conditional formatting not working on Dlookup text boxes -
i trying conditionally format 12 text boxes. linked combobox when 'batch' selected populates each text box number using dlookup function.
me.textbox = dlast("[field]", "[table]", "[batch]= '" & [forms]![formname]![batch] & "'")
i have conditionally formatted of text boxes individually, each have different limit values , colours.
all of text boxes displaying correct colours formatting when change batch number in combo box , numbers in text box, apart 2! in 2 boxes number in textbox change colour not correspond formatting rules have set. example:
the conditional formatting rules have given 1 of boxes (that aren't working) are:
field value <= 500 (formatted green) field value between 500 , 5100 (formatted yellow) field value > 5100 (formatted red)
when value of ~4000 looked up, colour of text box green??
but on different batch similar number, 4500 red?
all other boxes similar rules (just different values) working correctly. don't understand wrong these 2 boxes. have tried deleting , reformatting, nothing.
could rule?
when apply conditional formatting lookup field, condition must based on lookup id, not value returned lookup field."
what mean?
could have using input masks when entering data database?
i've gone using query reference values tables based on batch selected in combobox instead of dlookup, , seems not causing problems conditional formatting of of boxes.
Comments
Post a Comment