miss_sunshine
Registered User.
- Local time
- Today, 02:01
- Joined
- Dec 13, 2004
- Messages
- 17
I have a client table, with a field called "status" which says whether they are "current" or "past".
I have a delete button on a form to delete clients, but would like to only permit past clients to be deleted. I would like incorporate a message box to say "you cannot delete a current client", and for no changes to be made when "ok" is clicked.
If a past client is to be deleted, I would like a message to say "Are you sure you want to delete all details of (client name)", and a yes/no option.
I know this can probably be done through coding but I am not too familiar with VBA. Does anyone have an example of some code I could use to make this work?
I have a delete button on a form to delete clients, but would like to only permit past clients to be deleted. I would like incorporate a message box to say "you cannot delete a current client", and for no changes to be made when "ok" is clicked.
If a past client is to be deleted, I would like a message to say "Are you sure you want to delete all details of (client name)", and a yes/no option.
I know this can probably be done through coding but I am not too familiar with VBA. Does anyone have an example of some code I could use to make this work?