Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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