Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

Next Record Event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ll - 23 Mar 2007 16:01 GMT
Hi,
I am wanting to add the current date to each new form, as I advance
through the recordset, using the buttons built in to the form at the
bottom.  I have currently the following code, but I am wanting to
enable the date stamp on successive record entries in the same
session.  Thanks, Louis
---------

Private Sub Form_Load()
   'Set date stamp on current record
   Text50.Value = Date
End Sub
Al Campagna - 23 Mar 2007 16:48 GMT
ll,
  First, you should name your objects something more meaningful than Text50... something
CreateDate, or InvoiceDate, MyDate etc...
  Delete the code you have now in the OnLoad event.

  Next, is Text50 a Date/Time field in yout table?  If not, make it so...then you can
just have the DefaultValue for Text50 set to...
       =Date()
  Make sure the Format for the control on the form is something like mm/dd/yy to display
the date the way you want.
  Every time you open a New record, the current Date will be "automagically" entered into
Text50.

Signature

hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."

> Hi,
> I am wanting to add the current date to each new form, as I advance
[quoted text clipped - 8 lines]
>    Text50.Value = Date
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.