Greetings,
I am trying to create a form to update two fields (VRB-Status, and VRB-Notes) but the fields are not updatable. The form is based on a query (qry_VacantPositionsDetails) that is based on two other queries. The VacantPositionsDetails query is designed to only display those position numbers that are currently vacant. Due to turnover, a position number can become vacant multiple time. I only need to update the status of the most recent date the position is vacant hence the maxdate (current vacancies). The VRB-Status fields are in the tbl_EmpDetails table. Below are the codes for the VacantPositionsDetails query. The tables are: tbl_Position (unique position #s); tbl_Personnel (Emp. personnel ID, Name, etc); tbl_EmpHistory (main form); and tbl_EmpDetails (subform).
I am hoping someone can guide me in the right direction to being able to update the form.
Thanks.
SELECT qry_VacantPositions.PosNumID, qry_VacantPositions.PosStatusID, qry_VacantPositions.MaxOfEffectiveDate, [FirstName] & " " & [LastName] AS Name, qry_EmpHistory.PersonnelID, qry_EmpHistory.IndexTitle, qry_EmpHistory.JobClassTitle, qry_EmpHistory.WY, qry_EmpHistory.[F/P], qry_EmpHistory.Grade, qry_EmpHistory.IndexCodeID, qry_EmpHistory.VRBStatusID, qry_EmpHistory.VRBStatus, qry_EmpHistory.VRBNotes
FROM qry_VacantPositions INNER JOIN qry_EmpHistory ON (qry_VacantPositions.MaxOfEffectiveDate=qry_EmpHistory.EffectiveDate) AND (qry_VacantPositions.PosNumID=qry_EmpHistory.PosNumID);
I am trying to create a form to update two fields (VRB-Status, and VRB-Notes) but the fields are not updatable. The form is based on a query (qry_VacantPositionsDetails) that is based on two other queries. The VacantPositionsDetails query is designed to only display those position numbers that are currently vacant. Due to turnover, a position number can become vacant multiple time. I only need to update the status of the most recent date the position is vacant hence the maxdate (current vacancies). The VRB-Status fields are in the tbl_EmpDetails table. Below are the codes for the VacantPositionsDetails query. The tables are: tbl_Position (unique position #s); tbl_Personnel (Emp. personnel ID, Name, etc); tbl_EmpHistory (main form); and tbl_EmpDetails (subform).
I am hoping someone can guide me in the right direction to being able to update the form.
Thanks.
SELECT qry_VacantPositions.PosNumID, qry_VacantPositions.PosStatusID, qry_VacantPositions.MaxOfEffectiveDate, [FirstName] & " " & [LastName] AS Name, qry_EmpHistory.PersonnelID, qry_EmpHistory.IndexTitle, qry_EmpHistory.JobClassTitle, qry_EmpHistory.WY, qry_EmpHistory.[F/P], qry_EmpHistory.Grade, qry_EmpHistory.IndexCodeID, qry_EmpHistory.VRBStatusID, qry_EmpHistory.VRBStatus, qry_EmpHistory.VRBNotes
FROM qry_VacantPositions INNER JOIN qry_EmpHistory ON (qry_VacantPositions.MaxOfEffectiveDate=qry_EmpHistory.EffectiveDate) AND (qry_VacantPositions.PosNumID=qry_EmpHistory.PosNumID);