S
Sandy
Is there any way to change field joins in an sql statement or query based on
some criteria?
For example:
If the current month is January then I want to join TableA.Field1 to
TableB.January However, if the month is February then I want to join
TableA.Field1 to TableB.February, without manually changing the link to
TableB.
Coincidentally, I would always be referencing the previous month Date()-31
in the database which would = the field name of TableB that I want to have
TableA joined to.
Your help is much appreciated on how to accomplish the above.
Thanks!
some criteria?
For example:
If the current month is January then I want to join TableA.Field1 to
TableB.January However, if the month is February then I want to join
TableA.Field1 to TableB.February, without manually changing the link to
TableB.
Coincidentally, I would always be referencing the previous month Date()-31
in the database which would = the field name of TableB that I want to have
TableA joined to.
Your help is much appreciated on how to accomplish the above.
Thanks!