You code is behaving as expected.
you are declaring two date variables (incorrectly named, int usually means
an integer variable, dtm or dat usually means date/time), but you never put
anything in them. If you are trying to compare two dates on your form, you
don't need the variables, you can use the controls.
Neither are fields. The are variables. And, forms do not have fields.
Fields belong to tables and queries. If it is on a form, it is a control.

Signature
Dave Hargis, Microsoft Access MVP
> How can I make a Validation Rule That limits the user from inputing a date on
> the Termination Field that is on or Before the Starting Date Field?
[quoted text clipped - 17 lines]
> End If
> End Sub
Jon-e-walker - 24 Jul 2007 16:56 GMT
Ok... so how can I compare them... what controls... I have a basic
Knowledge on the new 2007 Access... Please offer some guidance on
camparing Dates... Thanks...
> You code is behaving as expected.
> you are declaring two date variables (incorrectly named, int usually means
[quoted text clipped - 30 lines]
>
> - Show quoted text -
Klatuu - 24 Jul 2007 17:04 GMT
Where are the dates you want to compare?

Signature
Dave Hargis, Microsoft Access MVP
> Ok... so how can I compare them... what controls... I have a basic
> Knowledge on the new 2007 Access... Please offer some guidance on
[quoted text clipped - 34 lines]
> >
> > - Show quoted text -