J
Jason
I’m trying to use Access 2003 to run reports from a SQL Server 2005 back end
and I have a problem:
I have a table, dbo_ApplApplicantEmployers
Users can input multiple employers for each applicant, each employer going
into its own record. From there the employer will be designated as “Full
Time†or “Part Time†and “Current†or “Previousâ€.
My problem is that, for this particular report, I need to be able to pull
just one employer per applicant. Easy enough up to this point… But I want to
be able to specify the “best†employer from the available options… in other
words the one that is Full Time and Current (if it exists), and work back
wards from there if that combination is not available.
I am able to sort the records so that they appear in the proper order but
when I attempt to apply a GROUP BY and use the FIRST in the SELECT statement,
it is disregarding the sort order and pulling the 1st record in the database
table.
Any ideas would be welcomed and VERY appreciated
Thanks in advance,
Jason
and I have a problem:
I have a table, dbo_ApplApplicantEmployers
Users can input multiple employers for each applicant, each employer going
into its own record. From there the employer will be designated as “Full
Time†or “Part Time†and “Current†or “Previousâ€.
My problem is that, for this particular report, I need to be able to pull
just one employer per applicant. Easy enough up to this point… But I want to
be able to specify the “best†employer from the available options… in other
words the one that is Full Time and Current (if it exists), and work back
wards from there if that combination is not available.
I am able to sort the records so that they appear in the proper order but
when I attempt to apply a GROUP BY and use the FIRST in the SELECT statement,
it is disregarding the sort order and pulling the 1st record in the database
table.
Any ideas would be welcomed and VERY appreciated
Thanks in advance,
Jason