L
Linda RQ
Hi Everyone,
Access 2003. I accidently double clicked on the wrong thing in a new query
based on another query. In the query grid, I added the
qryVentThpyWithinLastArea and double clicked on the *. It only filled one
column of my grid but when I ran the query, it showed all the fields from
the query. I then dragged down Area field and added my criteria. I had
been taught to double click on the blue title bar and then drag all the
fields to the grid then add my criteria. Both ways give me the same data.
What is the differnce?
I pasted the sql below so you can see what's going on...
SELECT qryVentThpyWithinLastArea.*, qryVentThpyWithinLastArea.AreaName
FROM qryVentThpyWithinLastArea
WHERE (((qryVentThpyWithinLastArea.AreaName)="PICU"));
SELECT qryVentThpyWithinLastArea.PtLName, qryVentThpyWithinLastArea.PtID,
qryVentThpyWithinLastArea.AdmitDtTm, qryVentThpyWithinLastArea.DCDtTm,
qryVentThpyWithinLastArea.AdmitNum, qryVentThpyWithinLastArea.PtThpyID,
qryVentThpyWithinLastArea.AreaName, qryVentThpyWithinLastArea.TherapyTypeID,
qryVentThpyWithinLastArea.TherapyDesc, qryVentThpyWithinLastArea.ThpyStDtTm,
qryVentThpyWithinLastArea.ThpyEndDtTm, qryVentThpyWithinLastArea.AdmLOS,
qryVentThpyWithinLastArea.VentLOS
FROM qryVentThpyWithinLastArea
WHERE (((qryVentThpyWithinLastArea.AreaName)="picu"));
Thanks,
Linda
Access 2003. I accidently double clicked on the wrong thing in a new query
based on another query. In the query grid, I added the
qryVentThpyWithinLastArea and double clicked on the *. It only filled one
column of my grid but when I ran the query, it showed all the fields from
the query. I then dragged down Area field and added my criteria. I had
been taught to double click on the blue title bar and then drag all the
fields to the grid then add my criteria. Both ways give me the same data.
What is the differnce?
I pasted the sql below so you can see what's going on...
SELECT qryVentThpyWithinLastArea.*, qryVentThpyWithinLastArea.AreaName
FROM qryVentThpyWithinLastArea
WHERE (((qryVentThpyWithinLastArea.AreaName)="PICU"));
SELECT qryVentThpyWithinLastArea.PtLName, qryVentThpyWithinLastArea.PtID,
qryVentThpyWithinLastArea.AdmitDtTm, qryVentThpyWithinLastArea.DCDtTm,
qryVentThpyWithinLastArea.AdmitNum, qryVentThpyWithinLastArea.PtThpyID,
qryVentThpyWithinLastArea.AreaName, qryVentThpyWithinLastArea.TherapyTypeID,
qryVentThpyWithinLastArea.TherapyDesc, qryVentThpyWithinLastArea.ThpyStDtTm,
qryVentThpyWithinLastArea.ThpyEndDtTm, qryVentThpyWithinLastArea.AdmLOS,
qryVentThpyWithinLastArea.VentLOS
FROM qryVentThpyWithinLastArea
WHERE (((qryVentThpyWithinLastArea.AreaName)="picu"));
Thanks,
Linda