ChrisOjeda
Programmer
I have a query that needs to compare two fields to the first of the month. It ran before but required manual updates each month. This is the expression used before:
IIf([ACQUISITION_DATE]>#4/30/03#,1,IIf([NEW_LOAN_SETUP_DATE]>#4/30/03#,1,0))
With the where criteria for this field to "1"
I wrote this expression to automate the query...
IIf([ACQUISITION_DATE]>=[Forms]![frmDailyDelinquencies]![txtFirst].[Value]
,1,IIf([NEW_LOAN_SETUP_DATE]>=[Forms]![frmDailyDelinquencies]![txtFirst].[Value],1,0))
Where the value of [Forms]![frmDailyDelinquencies]![txtFirst].[Value] is the first day of the current month. Code accomplishes this in the on load fuction of the form. The text box displays the first of the month. When I run the query directly (instead of through code) it works. When I run through code the program just stops at that point (does not crash so I have to break it to stop it).
Maybe there is an easy way to do this. I basically just need to make sure that:
[ACQUISITION_DATE]>= first of current month
-or-
[NEW_LOAN_SETUP_DATE]>= first of current month
Can someone please help???
IIf([ACQUISITION_DATE]>#4/30/03#,1,IIf([NEW_LOAN_SETUP_DATE]>#4/30/03#,1,0))
With the where criteria for this field to "1"
I wrote this expression to automate the query...
IIf([ACQUISITION_DATE]>=[Forms]![frmDailyDelinquencies]![txtFirst].[Value]
,1,IIf([NEW_LOAN_SETUP_DATE]>=[Forms]![frmDailyDelinquencies]![txtFirst].[Value],1,0))
Where the value of [Forms]![frmDailyDelinquencies]![txtFirst].[Value] is the first day of the current month. Code accomplishes this in the on load fuction of the form. The text box displays the first of the month. When I run the query directly (instead of through code) it works. When I run through code the program just stops at that point (does not crash so I have to break it to stop it).
Maybe there is an easy way to do this. I basically just need to make sure that:
[ACQUISITION_DATE]>= first of current month
-or-
[NEW_LOAN_SETUP_DATE]>= first of current month
Can someone please help???