The Brown Growler
Registered User.
- Local time
- Today, 10:33
- Joined
- May 24, 2008
- Messages
- 85
Hi,
I hope to be able to run an append query repetitively with each occasion of running the query representing an increment of 1 day.
I have a date table containing the dates that I wish to use as incremental dates and I can join this table to my source data that contains the values for the append query.
However, I am stuck as to how to put it all together. I have provided an example below which I hope illustrates what I am trying to achieve:
1. DateTable - contains 1 field of dates that I wish to use as increments
[IncrementalDate]
2. SalesTable
[SalesDate]
[180 day sales value]
30 day sales value]
[10 day sales value]
[SalesStatus]: IIf([10 day sales value]>[30 days sales value] And [30 day sales value]>[180 day sales value],"Hot","Cold")
The result will be to append to my new table the [SalesStatus] value for each date of running the query.
I hope it is clear enough.
Thx for any help or advice or any alternative solutions to using queries such as some VBA or a macro etc.
Rgds
Growlos
I hope to be able to run an append query repetitively with each occasion of running the query representing an increment of 1 day.
I have a date table containing the dates that I wish to use as incremental dates and I can join this table to my source data that contains the values for the append query.
However, I am stuck as to how to put it all together. I have provided an example below which I hope illustrates what I am trying to achieve:
1. DateTable - contains 1 field of dates that I wish to use as increments
[IncrementalDate]
2. SalesTable
[SalesDate]
[180 day sales value]
30 day sales value]
[10 day sales value]
[SalesStatus]: IIf([10 day sales value]>[30 days sales value] And [30 day sales value]>[180 day sales value],"Hot","Cold")
The result will be to append to my new table the [SalesStatus] value for each date of running the query.
I hope it is clear enough.
Thx for any help or advice or any alternative solutions to using queries such as some VBA or a macro etc.
Rgds
Growlos