i do not know if this is dificult or not - but I cannot seem to get my head around it.
I have 3 tables:
Customer Info
First Order
Follow-up Orders
What I want to do is create a report with a date parameter that firstly looks to the first order field and checks to see if there is an order for that date. If there is no order (either there has been no orders at all - or the date of the first order is passed [or yet to come])then it needs to look to the follow-up orders table to see if there is any data there for the customer and return it.
The fields in the first order and follow-up orders tables are similar.
An example of the data is...
table.customer
ID Name
12345 Bob Jones
54321 Tom Smith
23456 Billy Bob
table. first order
ID Date Description
12345 01/01/2003 xyz
table. follow-up orders
ID Date Description
54321 01/01/2003 abc
23456 02/01/2003 def
What I want is....
Date Parameter: 01/01/2003
ID Name Description New / Follow-Up
12345 Bob Jones XYZ New
54321 Tom Smith abc Follow-Up
Any ideas..?
Thanks Vis
I have 3 tables:
Customer Info
First Order
Follow-up Orders
What I want to do is create a report with a date parameter that firstly looks to the first order field and checks to see if there is an order for that date. If there is no order (either there has been no orders at all - or the date of the first order is passed [or yet to come])then it needs to look to the follow-up orders table to see if there is any data there for the customer and return it.
The fields in the first order and follow-up orders tables are similar.
An example of the data is...
table.customer
ID Name
12345 Bob Jones
54321 Tom Smith
23456 Billy Bob
table. first order
ID Date Description
12345 01/01/2003 xyz
table. follow-up orders
ID Date Description
54321 01/01/2003 abc
23456 02/01/2003 def
What I want is....
Date Parameter: 01/01/2003
ID Name Description New / Follow-Up
12345 Bob Jones XYZ New
54321 Tom Smith abc Follow-Up
Any ideas..?
Thanks Vis