History of my problem: had 1 query pulled off of another one and it would not let me enter or change the data - was posted in this forum (yesterday and today).
Having problems with: "Recordset not updatable." I have a new query based off of 2 tables (back to the beginning).....here's what it looks like in SQL:
SELECT DISTINCT Patients.PatID, Patients.PatName, Max(PatEvents.EventCode) AS MaxOfEventCode, Patients.KLevel AS PatActLevel, Patients.PatTeam, 1 AS PatCount, Patients.AdmitDate, DateDiff("d",[AdmitDate],Now()) AS LOS
FROM Patients LEFT JOIN PatEvents ON Patients.PatID = PatEvents.PatID
GROUP BY Patients.PatID, Patients.PatName, Patients.KLevel, Patients.PatTeam, 1, Patients.AdmitDate, DateDiff("d",[AdmitDate],Now()), Patients.PatActive
HAVING (((Max(PatEvents.EventCode))<"94"
AND ((Patients.PatActive)=Yes))
ORDER BY Patients.PatID, Patients.PatName;
This is as basic as I can get the query in order to pull up what I need. Yet....it still tells me the Recordset is not updatable. Is there any hope for me and this problem? This query above goes into our patient table, pulls up all active patients (denoted by PatActive = Yes), then checks it against the Events table (where the information is stored). A patient is noted as inactive if they have PatActive = No and an event code of 94 or greater (events states that the patient has died, etc.). This is as basic as I can get the query. So..the query pulls up active patients. I can't figure out how I can get it to let me enter data.
Please..anyone..I'm at the end of the rope! "Try everything at least once."
Having problems with: "Recordset not updatable." I have a new query based off of 2 tables (back to the beginning).....here's what it looks like in SQL:
SELECT DISTINCT Patients.PatID, Patients.PatName, Max(PatEvents.EventCode) AS MaxOfEventCode, Patients.KLevel AS PatActLevel, Patients.PatTeam, 1 AS PatCount, Patients.AdmitDate, DateDiff("d",[AdmitDate],Now()) AS LOS
FROM Patients LEFT JOIN PatEvents ON Patients.PatID = PatEvents.PatID
GROUP BY Patients.PatID, Patients.PatName, Patients.KLevel, Patients.PatTeam, 1, Patients.AdmitDate, DateDiff("d",[AdmitDate],Now()), Patients.PatActive
HAVING (((Max(PatEvents.EventCode))<"94"
ORDER BY Patients.PatID, Patients.PatName;
This is as basic as I can get the query in order to pull up what I need. Yet....it still tells me the Recordset is not updatable. Is there any hope for me and this problem? This query above goes into our patient table, pulls up all active patients (denoted by PatActive = Yes), then checks it against the Events table (where the information is stored). A patient is noted as inactive if they have PatActive = No and an event code of 94 or greater (events states that the patient has died, etc.). This is as basic as I can get the query. So..the query pulls up active patients. I can't figure out how I can get it to let me enter data.
Please..anyone..I'm at the end of the rope! "Try everything at least once."