I have a form ("frmHW" record source = tblHW) which contains a sub-form ("subHWEvents" record source = qryHWEvents from tblEvents) in a tab control (tabHWInfo).
The "HWID" Primary Key from the tblHW links the subHWEvents HWID Foreign Key.
In the "subHWEvents" sub-form there is a Yes/No Control called "CurrentStatus", which I use to identify the current status of each piece of hardware in the table for queries or reports, (only 1 Event should reflect "Current Status" for each hardware record though there may be any number of events per hardware record). The event date is not an option as there may be events that do not change the current status, and/or multiple events with the same event date.
What I would like to do is have any HWEvent that has the "CurrentStatus" selected, to be automatically toggled to "NO" when the user selects another HWEvent as the "CurrentStatus" for that particular hardware record.
A fallback would be alert the user when they select a "HWEvent" as the "CurrentStatus" if there is already an existing "HWEvent" with the "Current Status" control selected for the current hardware record.
Any ideas on solving this issue would be greatly appreciated. Thanks!
The "HWID" Primary Key from the tblHW links the subHWEvents HWID Foreign Key.
In the "subHWEvents" sub-form there is a Yes/No Control called "CurrentStatus", which I use to identify the current status of each piece of hardware in the table for queries or reports, (only 1 Event should reflect "Current Status" for each hardware record though there may be any number of events per hardware record). The event date is not an option as there may be events that do not change the current status, and/or multiple events with the same event date.
What I would like to do is have any HWEvent that has the "CurrentStatus" selected, to be automatically toggled to "NO" when the user selects another HWEvent as the "CurrentStatus" for that particular hardware record.
A fallback would be alert the user when they select a "HWEvent" as the "CurrentStatus" if there is already an existing "HWEvent" with the "Current Status" control selected for the current hardware record.
Any ideas on solving this issue would be greatly appreciated. Thanks!