O
OzPete
Hi all,
Firstly, I am not sure of the date values (1-7)of the days of the week, but
I need to achieve this end result
So I am making some assumtions here to explain my challenge...
Sunday = 1, Monday = 2, etc
checkbox ticked has a value of -1
I have seven checkboxes in a table [SCRIPTS] and they are named [Sun] thru
to [Sat] to represent the days of the week. I need a form's (form name is
DISPENSE) On Current event to prompt me thus:
If the date value of Date() is 4 (Wednesday), and the record = -1 for field
[THU], I need a MsgBox to appear, saying "Take Aways to be supplied for
Tomorrow". As is now evident, I need a MsgBox to appear at Dispensation
time on Wednesday, to enable a takeaway prescription to be supplied for the
next day (Thursday), when the client cannot attend the pharmacy.
Can someone suggest the code to include in the On Current event to check the
date value (1-7) against the checkbox, and produce the MsgBox? (and is the
On Current event the best place to position the code?)
[slowly getting through these challenges.... ]
tia
OzPete
Firstly, I am not sure of the date values (1-7)of the days of the week, but
I need to achieve this end result
So I am making some assumtions here to explain my challenge...
Sunday = 1, Monday = 2, etc
checkbox ticked has a value of -1
I have seven checkboxes in a table [SCRIPTS] and they are named [Sun] thru
to [Sat] to represent the days of the week. I need a form's (form name is
DISPENSE) On Current event to prompt me thus:
If the date value of Date() is 4 (Wednesday), and the record = -1 for field
[THU], I need a MsgBox to appear, saying "Take Aways to be supplied for
Tomorrow". As is now evident, I need a MsgBox to appear at Dispensation
time on Wednesday, to enable a takeaway prescription to be supplied for the
next day (Thursday), when the client cannot attend the pharmacy.
Can someone suggest the code to include in the On Current event to check the
date value (1-7) against the checkbox, and produce the MsgBox? (and is the
On Current event the best place to position the code?)
[slowly getting through these challenges.... ]
tia
OzPete