T
Tim
I am getting more records than I expected. what I am
trying to do is I have two different tables that I am
getting information from. First Table getting patient
information. Second Table getting Rx Information. I only
want to return the first record from the Second Table.
This is my code:
sSQL = "SELECT MPPTbl.FirstName,
MPPTbl.LastName,MPPTbl.MiddleName,
MPPTbl.DOB,MPPTbl.LastName & ', ' & MPPTbl.FirstName
& ' ' & MPPTbl.MiddleName AS Patients, MPPTbl.Address,
PerscriptionTbl.PHDate, PerscriptionTbl.PD,
PerscriptionTbl.ControlN From MPPTbl, PerscriptionTbl
WHERE ActivePatient = '1' ORDER BY MPPTbl.LastName ASC,
PHDAte DESC "
the problem that I am having now, is it is returning all
records in the second table with repeat information from
the first table. I only want to get the first record
showing in the second table.
Can anybody help.
trying to do is I have two different tables that I am
getting information from. First Table getting patient
information. Second Table getting Rx Information. I only
want to return the first record from the Second Table.
This is my code:
sSQL = "SELECT MPPTbl.FirstName,
MPPTbl.LastName,MPPTbl.MiddleName,
MPPTbl.DOB,MPPTbl.LastName & ', ' & MPPTbl.FirstName
& ' ' & MPPTbl.MiddleName AS Patients, MPPTbl.Address,
PerscriptionTbl.PHDate, PerscriptionTbl.PD,
PerscriptionTbl.ControlN From MPPTbl, PerscriptionTbl
WHERE ActivePatient = '1' ORDER BY MPPTbl.LastName ASC,
PHDAte DESC "
the problem that I am having now, is it is returning all
records in the second table with repeat information from
the first table. I only want to get the first record
showing in the second table.
Can anybody help.