G
Guest
Hi. I'm sure this has been answered but I searched and searched and couldn't
find it. I have two tables. Table A has a invoice # and invoice dates.
based on invoice dates, I want to return a value. For example:
If invoice dates between Date and date, "A","". Right now I have multiple
if statements in the query to return the value. Problem is that new values
are added based on the date so instead of me going in the query adding it, I
created a table B with these columns. Beging Date, End Date, Value. so if
the new dates and value need to be added all I or user have to do is add it
in the table. How would I go about doing something like : iif([invoice
date] between tableB.begingdate and tableB.endDate, "tableB.Value","") ??
Thank you!
find it. I have two tables. Table A has a invoice # and invoice dates.
based on invoice dates, I want to return a value. For example:
If invoice dates between Date and date, "A","". Right now I have multiple
if statements in the query to return the value. Problem is that new values
are added based on the date so instead of me going in the query adding it, I
created a table B with these columns. Beging Date, End Date, Value. so if
the new dates and value need to be added all I or user have to do is add it
in the table. How would I go about doing something like : iif([invoice
date] between tableB.begingdate and tableB.endDate, "tableB.Value","") ??
Thank you!