Keith Nichols
Registered User.
- Local time
- Today, 18:47
- Joined
- Jan 27, 2006
- Messages
- 431
Hi,
This might be an odd one as I can't find anything relevant in the forum.
I have a boolean Field, Archive, in my table, tbl_prj_Details, and the form fdlg_Prj_details is based on this table. Records marked as "archive" are excluded by the form's sql. On the form is a command button, cmd_Archive.
The on-click event of cmd_Archive runs a message box asking users to confirm archiving. If yes is selected I want the boolean field in the table to be set to yes. The form is then re-queried and the archived record disappears from view.
I was able to get several versions of this functionality working using check boxes on my form, but I was hoping to reduce things to 2 clicks, Archive & confirm.
and a host of variations on this theme did not work. I know that this is, or should be, something relatively simple, but as a self taught newbie, I can't figure it right now. Any help appreciated.
Regards,
Keith.
This might be an odd one as I can't find anything relevant in the forum.
I have a boolean Field, Archive, in my table, tbl_prj_Details, and the form fdlg_Prj_details is based on this table. Records marked as "archive" are excluded by the form's sql. On the form is a command button, cmd_Archive.
The on-click event of cmd_Archive runs a message box asking users to confirm archiving. If yes is selected I want the boolean field in the table to be set to yes. The form is then re-queried and the archived record disappears from view.
I was able to get several versions of this functionality working using check boxes on my form, but I was hoping to reduce things to 2 clicks, Archive & confirm.
Code:
Me![tbl_Prj_Details].Archive = True
and a host of variations on this theme did not work. I know that this is, or should be, something relatively simple, but as a self taught newbie, I can't figure it right now. Any help appreciated.
Regards,
Keith.