M
moosecck
I have a table tblCreditApplicationInput which holds all our customer
data for those who are applying for credit from our company. I
created a report called rpt_Bank_Ref_Letter which we send to banks in
order to check our customer references. When we process data for the
letters to be sent, we run a make table query to create the
tblMailMerge_Bank_References data which will then be used to feed to
the report we send to the banks. On the report we have 3 lines called
1st Request, 2nd Request and Final Request. These 3 fields are also
columns in our tables. When we run the print report process, I need to
have the report enter the date the report is run into the 1st Request
column of the table. If I run the report again next week for the same
customer, I need to have the query look at the 1st Request column in
the table, and if there is a date there, have the date the report is
run again go into the 2nd Request column. Then if I run the report for
the same customer the following week, I need the query to look at the
table and check for dates in the 1st Request and 2nd Request columns,
and if there are dates there enter the date the report is being run
into the Final Request column. Code below:
Query Code for First_Request
UPDATE tblMailMerge_Bank_References SET
tblMailMerge_Bank_References.Bank_Ref_First_Request = Date()
WHERE (((tblMailMerge_Bank_References.Bank_Ref_First_Request) Is
Null));
Query Code for Second_Request
UPDATE tblMailMerge_Bank_References SET
tblMailMerge_Bank_References.Bank_Ref_Second_Request = Date()
WHERE (((tblMailMerge_Bank_References.Bank_Ref_Second_Request) Is
Null) AND ((tblMailMerge_Bank_References.Bank_Ref_First_Request) Is
Not Null));
Query Code for Final_Request
UPDATE tblMailMerge_Bank_References SET
tblMailMerge_Bank_References.Bank_Ref_Final_Request = Date()
WHERE (((tblMailMerge_Bank_References.Bank_Ref_Final_Request) Is Null)
AND ((tblMailMerge_Bank_References.Bank_Ref_Second_Request) Is Not
Null) AND ((tblMailMerge_Bank_References.Bank_Ref_First_Request) Is
Not Null));
I have tried other methods as well with no luck. Can anyone tell me
what I am doing wrong?
Thanks in advance for all your help
Tom
data for those who are applying for credit from our company. I
created a report called rpt_Bank_Ref_Letter which we send to banks in
order to check our customer references. When we process data for the
letters to be sent, we run a make table query to create the
tblMailMerge_Bank_References data which will then be used to feed to
the report we send to the banks. On the report we have 3 lines called
1st Request, 2nd Request and Final Request. These 3 fields are also
columns in our tables. When we run the print report process, I need to
have the report enter the date the report is run into the 1st Request
column of the table. If I run the report again next week for the same
customer, I need to have the query look at the 1st Request column in
the table, and if there is a date there, have the date the report is
run again go into the 2nd Request column. Then if I run the report for
the same customer the following week, I need the query to look at the
table and check for dates in the 1st Request and 2nd Request columns,
and if there are dates there enter the date the report is being run
into the Final Request column. Code below:
Query Code for First_Request
UPDATE tblMailMerge_Bank_References SET
tblMailMerge_Bank_References.Bank_Ref_First_Request = Date()
WHERE (((tblMailMerge_Bank_References.Bank_Ref_First_Request) Is
Null));
Query Code for Second_Request
UPDATE tblMailMerge_Bank_References SET
tblMailMerge_Bank_References.Bank_Ref_Second_Request = Date()
WHERE (((tblMailMerge_Bank_References.Bank_Ref_Second_Request) Is
Null) AND ((tblMailMerge_Bank_References.Bank_Ref_First_Request) Is
Not Null));
Query Code for Final_Request
UPDATE tblMailMerge_Bank_References SET
tblMailMerge_Bank_References.Bank_Ref_Final_Request = Date()
WHERE (((tblMailMerge_Bank_References.Bank_Ref_Final_Request) Is Null)
AND ((tblMailMerge_Bank_References.Bank_Ref_Second_Request) Is Not
Null) AND ((tblMailMerge_Bank_References.Bank_Ref_First_Request) Is
Not Null));
I have tried other methods as well with no luck. Can anyone tell me
what I am doing wrong?
Thanks in advance for all your help
Tom