Access Query not functioning completely.

G

Guest

I created a query with two tables, ID numbers in common. I joined the IDN in
both, but only the information from one table is showing in the results. I've
done a hundred other queries like this. Did I "set" something that I
shouldn't have? Hope someone can help.
 
G

Guest

Do you have any fields from the other table in the Field row of the QBE grid?
If so is there a checkmark in the Show row?

If that doesn't answer the question, show us the SQL. Open the query in
design view. Next go to View, SQL View and copy and past it here. Information
on primary keys and relationships would be a nice touch too.
 
G

Guest

Thank you for your quick reply!!
All Show boxes are checked. I have all the columns requested for the other
table, but they are empty.

SQL as requested. Keys in both tables are the IDNs.
SELECT [AENT Submissions].IDN, [AENT Submissions].[Last Name], [DB--GR
Student Master].[First Name], [AENT Submissions].Term, [AENT
Submissions].Application, [AENT Submissions].Eligible, [AENT
Submissions].[AENT Notes], [AENT Submissions].[Fam Low Inc], [AENT
Submissions].Consideration, [DB--GR Student Master].[Phone Number], [DB--GR
Student Master].[EMail Address], [DB--GR Student Master].Major, [DB--GR
Student Master].Street, [DB--GR Student Master].City, [DB--GR Student
Master].State, [DB--GR Student Master].ZipCode
FROM [AENT Submissions] LEFT JOIN [DB--GR Student Master] ON [AENT
Submissions].IDN = [DB--GR Student Master].IDN
WHERE ((([AENT Submissions].Term) Like "FY07*"))
ORDER BY [AENT Submissions].[Last Name];
 
G

Guest

In that case it just means that there isn't any matching data. You have a
Left Join otherwise no records would be returned. Double check that there are
matching records in the both IDN fields. Are there really two dashes in the
[DB--GR Student Master] table name?

It could also be that your WHERE clause eliminates any records with matches
between the two tables. For testing remove the WHERE clause and see what
happens.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

CCIsland said:
Thank you for your quick reply!!
All Show boxes are checked. I have all the columns requested for the other
table, but they are empty.

SQL as requested. Keys in both tables are the IDNs.
SELECT [AENT Submissions].IDN, [AENT Submissions].[Last Name], [DB--GR
Student Master].[First Name], [AENT Submissions].Term, [AENT
Submissions].Application, [AENT Submissions].Eligible, [AENT
Submissions].[AENT Notes], [AENT Submissions].[Fam Low Inc], [AENT
Submissions].Consideration, [DB--GR Student Master].[Phone Number], [DB--GR
Student Master].[EMail Address], [DB--GR Student Master].Major, [DB--GR
Student Master].Street, [DB--GR Student Master].City, [DB--GR Student
Master].State, [DB--GR Student Master].ZipCode
FROM [AENT Submissions] LEFT JOIN [DB--GR Student Master] ON [AENT
Submissions].IDN = [DB--GR Student Master].IDN
WHERE ((([AENT Submissions].Term) Like "FY07*"))
ORDER BY [AENT Submissions].[Last Name];


Jerry Whittle said:
Do you have any fields from the other table in the Field row of the QBE grid?
If so is there a checkmark in the Show row?

If that doesn't answer the question, show us the SQL. Open the query in
design view. Next go to View, SQL View and copy and past it here. Information
on primary keys and relationships would be a nice touch too.
 
G

Guest

Yes, there are two dashes in the name.
Your response didn't make sense at first, but it got me thinking in a
different direction. I rechecked my tables (I knew the problem was with the
newer one) and I found my error. I had formatted the IDN in the Master table,
but not in the second table.
And sometimes, it's just as simple/stupid as that.
Thanks so much for your time! I appreciate the help.


Jerry Whittle said:
In that case it just means that there isn't any matching data. You have a
Left Join otherwise no records would be returned. Double check that there are
matching records in the both IDN fields. Are there really two dashes in the
[DB--GR Student Master] table name?

It could also be that your WHERE clause eliminates any records with matches
between the two tables. For testing remove the WHERE clause and see what
happens.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

CCIsland said:
Thank you for your quick reply!!
All Show boxes are checked. I have all the columns requested for the other
table, but they are empty.

SQL as requested. Keys in both tables are the IDNs.
SELECT [AENT Submissions].IDN, [AENT Submissions].[Last Name], [DB--GR
Student Master].[First Name], [AENT Submissions].Term, [AENT
Submissions].Application, [AENT Submissions].Eligible, [AENT
Submissions].[AENT Notes], [AENT Submissions].[Fam Low Inc], [AENT
Submissions].Consideration, [DB--GR Student Master].[Phone Number], [DB--GR
Student Master].[EMail Address], [DB--GR Student Master].Major, [DB--GR
Student Master].Street, [DB--GR Student Master].City, [DB--GR Student
Master].State, [DB--GR Student Master].ZipCode
FROM [AENT Submissions] LEFT JOIN [DB--GR Student Master] ON [AENT
Submissions].IDN = [DB--GR Student Master].IDN
WHERE ((([AENT Submissions].Term) Like "FY07*"))
ORDER BY [AENT Submissions].[Last Name];


Jerry Whittle said:
Do you have any fields from the other table in the Field row of the QBE grid?
If so is there a checkmark in the Show row?

If that doesn't answer the question, show us the SQL. Open the query in
design view. Next go to View, SQL View and copy and past it here. Information
on primary keys and relationships would be a nice touch too.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

:

I created a query with two tables, ID numbers in common. I joined the IDN in
both, but only the information from one table is showing in the results. I've
done a hundred other queries like this. Did I "set" something that I
shouldn't have? Hope someone can help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SUM in a UNION query 2
Queries with Linked Tables 5
The query cannot be completed. 1
Counting multiple memberships 1
Access Query problem 1
quick query question 3
Query Key 3
Access Dcount (multiple criteria) 3

Top