Solved

VB Date

Posted on 2011-09-29
2
352 Views
Last Modified: 2012-08-13
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
Comment
Question by:tammyborden32
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 500 total points
ID: 36814980
Try Now instead Date.

rs!PullDate = Now

Hope that helps.
0
 

Author Closing Comment

by:tammyborden32
ID: 36815317
That did.  Once again Experts-Exchange to the rescue!!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now