J
James
I've been using access for two years so queries are not a
problem for me, however I have tried to write a query that
filters information from one table based on the
information displayed on an active form. This information
is then displayed in a subform. Only one column will
sort, I've checked the table format as well as the column
formats and they are the same as the master table that the
form gets it's information from. Below is the SQL
queries, the top one works and the bottom doesn't. I'm
pulling what little hair I've got trying to figure this
one out.
SELECT AsscoTable.SSAN, AsscoTable.AFSC, AsscoTable.AEF,
AsscoTable.UTC, AsscoTable.ULN, AsscoTable.AFSCPre,
AsscoTable.Grade, AsscoTable.SEI, AsscoTable.UTCLineNumber
FROM AsscoTable
WHERE (((AsscoTable.AFSC)=Forms!NewAssoForm!Text5))
ORDER BY AsscoTable.AEF;
SELECT AsscoTable.SSAN, AsscoTable.AFSC, AsscoTable.AEF,
AsscoTable.UTC, AsscoTable.ULN, AsscoTable.AFSCPre,
AsscoTable.Grade, AsscoTable.SEI, AsscoTable.UTCLineNumber
FROM AsscoTable
WHERE (((AsscoTable.SSAN)=[Forms]![NewAssoForm]![Text12]));
problem for me, however I have tried to write a query that
filters information from one table based on the
information displayed on an active form. This information
is then displayed in a subform. Only one column will
sort, I've checked the table format as well as the column
formats and they are the same as the master table that the
form gets it's information from. Below is the SQL
queries, the top one works and the bottom doesn't. I'm
pulling what little hair I've got trying to figure this
one out.
SELECT AsscoTable.SSAN, AsscoTable.AFSC, AsscoTable.AEF,
AsscoTable.UTC, AsscoTable.ULN, AsscoTable.AFSCPre,
AsscoTable.Grade, AsscoTable.SEI, AsscoTable.UTCLineNumber
FROM AsscoTable
WHERE (((AsscoTable.AFSC)=Forms!NewAssoForm!Text5))
ORDER BY AsscoTable.AEF;
SELECT AsscoTable.SSAN, AsscoTable.AFSC, AsscoTable.AEF,
AsscoTable.UTC, AsscoTable.ULN, AsscoTable.AFSCPre,
AsscoTable.Grade, AsscoTable.SEI, AsscoTable.UTCLineNumber
FROM AsscoTable
WHERE (((AsscoTable.SSAN)=[Forms]![NewAssoForm]![Text12]));