Ok, I am having difficulty making this work, I have a text box that I want
to
prepopulate with formula that you have given me. But when it put in
before
update I does not work, Can you please help me out? also, every date but
the
Date Foreclosure Sale is showing up 12:00 AM
Private Sub Text335_BeforeUpdate(Cancel As Integer)
Dim First_Time_Vacancy As Date, Redemption_Date As Date,
Marketable_Title_Date As Date, Date_Foreclosure_Date As Date, HIGHDATE As
Date
First_Time_Vacancy = Forms!Borrower_Information.[First Time Vacancy]
Redemption_Date = Forms!Borrower_Information.[Redemption Date]
Marketable_Title_Date = Forms!Borrower_Information.[Marketable Title Date]
Date_Foreclosure_Sale = Forms!Borrower_Information.[Date Foreclosure Sale]
If First_Time_Vacancy > HIGHDATE Then HIGHDATE = First_Time_Vacancy
If Redemption_Date > HIGHDATE Then HIGHDATE = Redemption_Date
If Marketable_Title_Date > HIGHDATE Then HIGHDATE = Marketable_Title_Date
If Date_Foreclosure_Sale > HIGHDATE Then HIGHDATE = Date_Foreclosure_Sale
Forms!Borrower_Information.[HIGHDATE] = HIGHDATE
End Sub
dchristo said:
I have 4 date fields (one of the dates could be empty) on my form - I
want to
prepopulate another field with the greater of the 4 dates. Can someone
tell
me how to accomplish this