J
jason
Using Access 2003.
I have a main address table and alternate address table for our customers.
In the alternate address table, we have a date of when the customer will be
at that location.
What I'm trying to do is check whether today falls between the alternate
address' date span and if it is, show it in a query. If today's date does
NOT fall between the alternate address dates, I just want to show the
address info from the main address table.
I thought that I could do something like:
DIM altAddress as String
altAddress = select altStreet, altCity, AltState, altETC.... FROM
altAddressTbl
WHERE today() >= altBeginDate AND today() <=altEndDate
I know that's not the full code above, but I can't get much further than
that because when I try to run this, I get an error saying that it expects a
DELETE, INSERT, PROCEDURE, SELECT, OR UPDATE and won't let me continue.
Is there something I'm missing here?
Thanks.
I have a main address table and alternate address table for our customers.
In the alternate address table, we have a date of when the customer will be
at that location.
What I'm trying to do is check whether today falls between the alternate
address' date span and if it is, show it in a query. If today's date does
NOT fall between the alternate address dates, I just want to show the
address info from the main address table.
I thought that I could do something like:
DIM altAddress as String
altAddress = select altStreet, altCity, AltState, altETC.... FROM
altAddressTbl
WHERE today() >= altBeginDate AND today() <=altEndDate
I know that's not the full code above, but I can't get much further than
that because when I try to run this, I get an error saying that it expects a
DELETE, INSERT, PROCEDURE, SELECT, OR UPDATE and won't let me continue.
Is there something I'm missing here?
Thanks.