• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

VB Date

I have some code behind a button in Access.  One of the tasks it completes is to add the current date in one of the fields.  It isn't working.  It adds random dates.  Instead of 9/29/11 for today's date, It returns 9/10/11.  I have confirmed that my system time is correct.  What is wrong with this statement?

rs!PullDate = Date

I tried to write it as rs!PullDate = Date(), but VB removes the ().

Thanks,
Tammy
0
tammyborden32
Asked:
tammyborden32
1 Solution
 
Luis PérezSoftware Architect in .NetCommented:
Try Now instead Date.

rs!PullDate = Now

Hope that helps.
0
 
tammyborden32Author Commented:
That did.  Once again Experts-Exchange to the rescue!!!!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now