G
Guest
I am trying to write some code that takes a date from a table and compare it
to a date entered on a form. I want to display a warning form if the table
date is earlier than the date on the form. Below is the code that I have
written, but it does not seem to be working. I am not getting an error
message, but the code is also not working. Any help would be great.
If DateDiff("d", Me.pdName.Column(5), Forms.ach_entry_form.Revenue_Date) < 0
Then
DoCmd.OpenForm Forms.change_warning_form
Else
Me!Description.SetFocus
to a date entered on a form. I want to display a warning form if the table
date is earlier than the date on the form. Below is the code that I have
written, but it does not seem to be working. I am not getting an error
message, but the code is also not working. Any help would be great.
If DateDiff("d", Me.pdName.Column(5), Forms.ach_entry_form.Revenue_Date) < 0
Then
DoCmd.OpenForm Forms.change_warning_form
Else
Me!Description.SetFocus