C
chazhead
Hi all
I have a sub form that contains 12 text boxes, named funnily enough
Jan, Feb, Mar....ect.
Each of these text boxes is controled by value from a query.
Now when a user updates the relevant part of the main form the subform
refreshes showing the revised data.
I use conditional formating to set the colours of the textbox
depending on the value, which works great, but, what I would like to
do is after any refresh is have a message box pop up listing any
textboxes that fallen within the criteria I have specified.
e.g after update, the months of Jan, April & Nov have values below 8,
I want a msg box to appear listing those 3 months.
I have looked at using the following:
If Me.Jan < 8 Then
Msgbox"Jan is less than 8"
Elseif me.Feb <8 Then
Msgbox"Feb is less than 8"
etc etc
but there must be a MUCH better way of doing it and having it popup
for every month.
Any guidance much appreciated as always.
Chaz
I have a sub form that contains 12 text boxes, named funnily enough
Jan, Feb, Mar....ect.
Each of these text boxes is controled by value from a query.
Now when a user updates the relevant part of the main form the subform
refreshes showing the revised data.
I use conditional formating to set the colours of the textbox
depending on the value, which works great, but, what I would like to
do is after any refresh is have a message box pop up listing any
textboxes that fallen within the criteria I have specified.
e.g after update, the months of Jan, April & Nov have values below 8,
I want a msg box to appear listing those 3 months.
I have looked at using the following:
If Me.Jan < 8 Then
Msgbox"Jan is less than 8"
Elseif me.Feb <8 Then
Msgbox"Feb is less than 8"
etc etc
but there must be a MUCH better way of doing it and having it popup
for every month.
Any guidance much appreciated as always.
Chaz