-----Original Message-----
Yes, both can be done, but the "how" depends on the way you've set up your
tables. I'll hazard a guess that you have something like this:
tblTable0
JobID
JobName
...
tblTable1
JobID (referencing tblTable0)
StartDate1
EndDateA
...
tblTable2
JobID (again referencing tblTable0)
StartDate2
EndDateB
...
For you first [or second] question you would create a report [or query], and
in the Properties window, type something like the following into "Record
Source" (on the Data tab) [for the query just type it into the SQL editor]:
SELECT * FROM tblTable1 INNER JOIN tblTable2 ON tblTable1.JobID =
tblTable2.JobID;
Note this assumes that your JobID is the corresponding field. If you're
using a different field to determine which records from tblTable1 belong
with which records from tblTable2, use that criterion in the "ON" statement.
Then you'll be able to pull StartDate1 and EndDateB (like your first
question--just choose those fields as the source for a bound text box) or
StartDate1-EndDateA and StartDate2-EndDateB (like your second question).
[If you're just looking to query for those and don't care about the rest,
replace "*" with "tblTable1.StartDate1, tblTable1.EndDateA,
tblTable2.StartDate2, tblTable2.EndDateB"]
If your table structure is very different and you can't figure this out,
please post your structure for better help.
-Stu
Can one request the start date from a field in table one
and request the end date from a field in table two and get
results in a report?
OR is it possible to write a query that allows one to pull
a start and end date from 1 table and start and end date
from table 2 and display the results in a report?
Thank you
Vicki
.