Did the following:
RowNum: (Select Count (*) FROM [tblPhysician] as Temp
WHERE [Temp].[Name] < [tblPhysician.Name])+1
Rownum comes out as the actual rownumber in the table rather than a sequential counter beginning at "1"
it looks like this:
23 Jones
47 Peterson
89 Williams
rather than
1 Jones
2 Peterson
3 Williams
here is my query:
SELECT tblPhysician.Facility, tblPhysician.[Phys Status], (Select Count (*) FROM [tblPhysician] as Temp
WHERE [Temp].[Name] < [tblPhysician.Name])+1 AS RowNum, tblPhysician.Name, tblPhysician.Addr1, tblPhysician.City1, tblPhysician.State1, tblPhysician.Zip1, tblPhysician.[CB Installed1], tblPhysician.[Install Date1], tblPhysician.Addr2, tblPhysician.City2, tblPhysician.State2, tblPhysician.Zip2, tblPhysician.[CB Installed2], tblPhysician.[Install Date2], tblPhysician.ReInstall2
FROM tblPhysician
WHERE (((tblPhysician.Facility)="E"

AND ((tblPhysician.[Phys Status])="A"

AND ((tblPhysician.[CB Installed1])=Yes))
ORDER BY tblPhysician.Name, tblPhysician.[Install Date1];
Bob Schmid
bob_schmid@hmis.org
330-746-1010 ext. 1347