N
Nick
Hi Programmers,
Users are sometimes clicking a save button in a subform more than
once, attaching the same record(s) from a subform combobox > 1 time in
the underlying join table.
On the flip side, users are sometimes forgetting to click the save
button to save the record(s) in the subform and are, instead, clicking
some other button on the main form. Therefore, the subform record(s)
never get joined.
So, my question is how to help automate the subform save process.
This whole dbase is about recording student misbehavior incidents or
interventions, where 1 intervention has 1 student, 1 or > 1 staff
involved, and 1 or > 1 misbehaviors involved.
How can access detect the following?
Thanks for any and all help.
===============================================
Here is background info on the main and subforms:
SUBFORM #1 = sfrmStaffAndInts
SELECT jtblStaffAndInts.StaffAndIntsID,
jtblStaffAndInts.InterventionID, jtblStaffAndInts.StaffID,
jtblStaffAndInts.RoleID, Staff.StaffLastName, Staff.StaffFirstName,
Staff.StaffExtension, IIf(IsNull([StaffFirstName]),[StaffLastName],
[StaffLastName] & ", " & Left([StaffFirstName],1) & ".") AS txtStaff,
Concatenate("Select qryStaffAndInts_2.txtStaff from qryStaffAndInts_2
where InterventionID = " & jtblStaffAndInts.InterventionID) AS
txtStaffs
FROM Staff INNER JOIN jtblStaffAndInts ON Staff.StaffID =
jtblStaffAndInts.StaffID;
SUBFORM #2 = sfrmMisbehaviorsAndInts
SELECT jtblMisbehaviorsAndInts.MisbehaviorID,
jtblMisbehaviorsAndInts.InterventionID,
jtblMisbehaviorsAndInts.MisbehaviorsAndIntsID,
Misbehaviors.Misbehavior, Misbehaviors.Misbehavior AS txtMisbehavior,
Concatenate("Select qryMisbehaviorsAndInts_2.txtMisbehavior from
qryMisbehaviorsAndInts_2 where InterventionID =" &
jtblMisbehaviorsAndInts.InterventionID) AS txtMisbehaviors
FROM Misbehaviors INNER JOIN jtblMisbehaviorsAndInts ON
Misbehaviors.MisbehaviorID = jtblMisbehaviorsAndInts.MisbehaviorID;
MAINFORM = frmInterventions
SELECT Clients.ClientID, Clients.ClientLname, Clients.ClientFname,
Clients.ClientOname, Clients.DormID, Dorms.DormName, Dorms.DormPhone,
Clients.Active_Inactive
FROM Dorms INNER JOIN Clients ON Dorms.DormID = Clients.DormID
WHERE (((Clients.Active_Inactive)=0))
ORDER BY Clients.ClientLname, Clients.ClientFname;
Users are sometimes clicking a save button in a subform more than
once, attaching the same record(s) from a subform combobox > 1 time in
the underlying join table.
On the flip side, users are sometimes forgetting to click the save
button to save the record(s) in the subform and are, instead, clicking
some other button on the main form. Therefore, the subform record(s)
never get joined.
So, my question is how to help automate the subform save process.
This whole dbase is about recording student misbehavior incidents or
interventions, where 1 intervention has 1 student, 1 or > 1 staff
involved, and 1 or > 1 misbehaviors involved.
How can access detect the following?
Thanks for any and all help.
===============================================
Here is background info on the main and subforms:
SUBFORM #1 = sfrmStaffAndInts
SELECT jtblStaffAndInts.StaffAndIntsID,
jtblStaffAndInts.InterventionID, jtblStaffAndInts.StaffID,
jtblStaffAndInts.RoleID, Staff.StaffLastName, Staff.StaffFirstName,
Staff.StaffExtension, IIf(IsNull([StaffFirstName]),[StaffLastName],
[StaffLastName] & ", " & Left([StaffFirstName],1) & ".") AS txtStaff,
Concatenate("Select qryStaffAndInts_2.txtStaff from qryStaffAndInts_2
where InterventionID = " & jtblStaffAndInts.InterventionID) AS
txtStaffs
FROM Staff INNER JOIN jtblStaffAndInts ON Staff.StaffID =
jtblStaffAndInts.StaffID;
SUBFORM #2 = sfrmMisbehaviorsAndInts
SELECT jtblMisbehaviorsAndInts.MisbehaviorID,
jtblMisbehaviorsAndInts.InterventionID,
jtblMisbehaviorsAndInts.MisbehaviorsAndIntsID,
Misbehaviors.Misbehavior, Misbehaviors.Misbehavior AS txtMisbehavior,
Concatenate("Select qryMisbehaviorsAndInts_2.txtMisbehavior from
qryMisbehaviorsAndInts_2 where InterventionID =" &
jtblMisbehaviorsAndInts.InterventionID) AS txtMisbehaviors
FROM Misbehaviors INNER JOIN jtblMisbehaviorsAndInts ON
Misbehaviors.MisbehaviorID = jtblMisbehaviorsAndInts.MisbehaviorID;
MAINFORM = frmInterventions
SELECT Clients.ClientID, Clients.ClientLname, Clients.ClientFname,
Clients.ClientOname, Clients.DormID, Dorms.DormName, Dorms.DormPhone,
Clients.Active_Inactive
FROM Dorms INNER JOIN Clients ON Dorms.DormID = Clients.DormID
WHERE (((Clients.Active_Inactive)=0))
ORDER BY Clients.ClientLname, Clients.ClientFname;