I am using this on the On Open event for a form. I want a spreadsheet type view that is editable which is why I am not using a report.
I have many strings in VBA that filter out the data I want shown. Example:
Code:
LastAction = 'Other' And IsNull(OtherDate) Or LastAction = 'Other' And OtherDate <" & Format(Dateval1day, "\#m/d/yyyy\#")
I have about 12 of these on this form. What I want in essense is a way to identify in the Alert field (an unbound field) is a simple quote as to why that particular record is showing. For the example above something like 'Other Date Error'. I know I could just have many different forms/queries so it is obvious what they are all on there for, but I would rather it all be on one. I can conditional format for each reason which colors the Alert column a different color for each reason, but it would be clearer to user if it just said a reason rather than giving them a color to link to a reason.
When I have tried adding columns to the query, one for each reason, I don't seem to have luck with something as above. It seems after 2 Or's or And's it loses it's mind.