G
Guest
I'm working on a calendar that is based on a single DATE field.
In my database there is a table with two DATE field:
ContractExpired & OptionRenewal
In a query I also created calculation field to remind me of the
expired/Option date (about two months notice).
START: ([ContractExpired])-96
PROCESS: ([OptionRenewal])-58
So, this gave me 4 four fields that I must convert to one field in a new
table.
I created an UNION QUERY for the two field in my Table as follows:
SELECT Agency.AgentNum, Agency.StoreLocation, Agency.ContractExpired,
IIf([Address1]="Manufacturers",[ContractExpired]-28,[ContractExpired]-99) AS
Start
FROM Agency
WHERE (((Agency.ContractExpired) Is Not Null))
UNION ALL SELECT Agency.AgentNum, Agency.StoreLocation,
Agency.OptionContract, [OptionContract]-58 AS Process
FROM Agency
WHERE (((Agency.OptionContract) Is Not Null));
Please held for the other (QUERY) calculation fields.
Thanks in advance
In my database there is a table with two DATE field:
ContractExpired & OptionRenewal
In a query I also created calculation field to remind me of the
expired/Option date (about two months notice).
START: ([ContractExpired])-96
PROCESS: ([OptionRenewal])-58
So, this gave me 4 four fields that I must convert to one field in a new
table.
I created an UNION QUERY for the two field in my Table as follows:
SELECT Agency.AgentNum, Agency.StoreLocation, Agency.ContractExpired,
IIf([Address1]="Manufacturers",[ContractExpired]-28,[ContractExpired]-99) AS
Start
FROM Agency
WHERE (((Agency.ContractExpired) Is Not Null))
UNION ALL SELECT Agency.AgentNum, Agency.StoreLocation,
Agency.OptionContract, [OptionContract]-58 AS Process
FROM Agency
WHERE (((Agency.OptionContract) Is Not Null));
Please held for the other (QUERY) calculation fields.
Thanks in advance