Union data

H

hughess7

Hi all

I have two tables:

[QuarterlyPlanner]
SpecID
ReviewDate
Activity
DealerCode
etc

[PlanDates]
SpecID
ReviewDate
ReviewDates

They are linked one to many, in QuarterlyPlanner ReviewDate is the Start
Date of an activity. If the activity lasts for more then one day than the
extra dates are stored in PlanDates (ReviewDates). This is a new procedure
for my system, I have had to do it as some new employees can now be working
over weekends (poor them!! :)).

My question is how do I join the two tables together to produce a plan
(report)? I know I can do a union query to produce just a list of all dates
from the two tables but I am not sure how to include the extra fields
(activity, dealercode etc). I want each day on the plan to have this data
showing.

Can I do this with some queries or do I need to do it in code and write to a
temporary table?

Hope this is clear! Thanks in advance for any help.
Sue
 
H

hughess7

I have sorted it :). Created a select query showing the data I needed with
all the extra fields and used this in my union query instead of the Plan
Dates table.

Sue
 

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

Search for records in table via VBA 4
Search and delete records 2
Add new records using vba 6
Editing Existing records 12
auto update form 3
Report criteria 3
Work Days 5
Find and Delete existing records 1

Top