mloucel
Member
- Local time
- Yesterday, 17:05
- Joined
- Aug 5, 2020
- Messages
- 356
Hello All,
I am trying to learn as much as I can as almost novice in access to keep my job.
I have advanced pretty well in all my forms, queries and tables, etc. but I got an addition I don't really know how to solve:
my boss wants to add a VOID button..
I added a Yes/No field to the data base.
so now I need to:
- once the form is open
-- check
-- if the record field = VOID then skip that record else
-- change the form header color back to (#77C0D4)
-- endif
With the form OPEN and while the user DOES NOT SAVE the record:
If the EU press the VOID button then
field VOID should change to YES
Form Header should change the color to RED (#ED1C24)
a label with the caption "VOIDED" should be displayed
else
[in case the user changes his/her mind and the record is not saved]
field VOID should change to NO
Form Header should change the color to (#77C0D4)
the label with caption "VOIDED" should be hidden
endif
EU clicks the SAVE button or moves to a different record and access saves the changes..
And of course once the record is saved all records with VOID should never show up, unless I specifically open the database and uncheck the button VOID, so that employees cannot do it themselves.
Now that challenge is WAY beyond my knowledge, and I would much appreciate if any of you gurus can point me to the right code.
Thanks
Maurice.
I am trying to learn as much as I can as almost novice in access to keep my job.
I have advanced pretty well in all my forms, queries and tables, etc. but I got an addition I don't really know how to solve:
my boss wants to add a VOID button..
I added a Yes/No field to the data base.
so now I need to:
- once the form is open
-- check
-- if the record field = VOID then skip that record else
-- change the form header color back to (#77C0D4)
-- endif
With the form OPEN and while the user DOES NOT SAVE the record:
If the EU press the VOID button then
field VOID should change to YES
Form Header should change the color to RED (#ED1C24)
a label with the caption "VOIDED" should be displayed
else
[in case the user changes his/her mind and the record is not saved]
field VOID should change to NO
Form Header should change the color to (#77C0D4)
the label with caption "VOIDED" should be hidden
endif
EU clicks the SAVE button or moves to a different record and access saves the changes..
And of course once the record is saved all records with VOID should never show up, unless I specifically open the database and uncheck the button VOID, so that employees cannot do it themselves.
Now that challenge is WAY beyond my knowledge, and I would much appreciate if any of you gurus can point me to the right code.
Thanks
Maurice.