Nothing obvious from the sql statement.
Open up each table in design view and make sure that the Project Number
field in all three tables are the same data type. If one is Text and the
others a Number, that might explain it.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
swlaw said:
SELECT Project.[Project Number], [O & M].[O&M Approved Date],
Submittal.[Submittal Date]
FROM (Project INNER JOIN [O & M] ON Project.[Project Number] = [O &
M].[Project Number]) INNER JOIN Submittal ON Project.[Project Number] =
Submittal.[Project Number];
:
Show us the SQL for that query. Open the query in design view. Next go to
View, SQL View and copy and past it here.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
:
Thanks Jerry,
I did what you suggested and I received the following error when I tried to
run the Query. "Type mismatch in expression"
Do you know what this means?
Thanks for your help.
S
:
Open up a new query in design view. Select the three tables that you mentioned.
Next drag and drop the Project Number field from the Project table onto the
Project Number field in the O&M table.
Do the same thing from the Project table to the Submittals table.
Select the fields that you wish to see from each table and drop them in the
columns below.
Run the query. There's a good chance that you may not see some Projects. If
there is a Project Number in the Project table but no matching Project Number
in the Submittals table, it won't be returned. To fix this go back to query
design view. Double click the line between the two tables until a dialog box
shows. Change it from Option 1 to Option 2 and see if that works better. You
may need to do the same thing with the other table.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
:
I have three tables Project, O&M and Submittals. The common item is Project
Number. I want to link the three tables to the same project number.
I am having a hard time getting this to work.
I am fairly new to Access 2007.
Can someone please help.