I have a report I need to run that is for US miles. If there were miles driven in Canada then I need to run a different report. I am trying to find a way to have a notification of miles in Canada.
So I have a dropdown box to select the customer. If that customer has Canadian mileage i would like to have a unbound box or label turn green to notify the user to run the Canadian mileage report.
I have created a query that looks at the customer records and will show all the records in Canada. I was thinking I could do an if statement that would basically say if the query is not empty then show the box as green
here is my rough effort
if (dcount, "q_checkformileage" > 0 Then
Me.messagebox.backcolor = green
else
Me.Messagebox.backcolor = red
end if
I know that doesn't really work at all but it is just my rough idea.