I am needing to do the following...
I can't get the vr_Date_Selected to match the rst!f_date.
I've tried all the '"# & vr_Date_Selected & # "' combinations I can think of but still couldn't get it to work... If I do rst!f_date = #1/3/2010# it works without a problem...
Please help...
Thanks
Code:
vr_Month = MonthNumber(txt_MonthName)
vr_Date_Selected = DateSerial(Me!txt_Year, vr_Month, Me!Text8)
rst.MoveFirst
Do Until rst.EOF
If rst!f_date = # & vr_Date_Selected & # Then
---Do something ---
End If
rst.MoveNext
Loop
I can't get the vr_Date_Selected to match the rst!f_date.
I've tried all the '"# & vr_Date_Selected & # "' combinations I can think of but still couldn't get it to work... If I do rst!f_date = #1/3/2010# it works without a problem...
Please help...
Thanks