I have the following bit of code:
Dim dteY As Date
Dim dteY2 As Date
dteY = #2/14/2008#
dteY2 = Year(dteY)
If I debug.print, dteY returns Feb 14, 2008 but dteY2 returns June 30, 1905. What I need to do is extract the Year out of the date for comparison purposes with data entered into a dialogue box.