Results 1 to 8 of 8
  1. #1
    scubagal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    21

    Default Date In A Form

    I would like to have the current date in the date box on a form that is open throughout the day. Is it possible and if so, can someone tell me how to do it? Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Set the ControlSource of the TextBox to: =Date()

  3. #3
    scubagal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    21
    Thanks. That was an easy one for you. How about this.... I want my form to open with the last entry showing instead of the very first. Can you help me with that? Thanks.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is it a single form, continuous form or datasheet view?

  5. #5
    scubagal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    21
    Yes it is a single form, in datasheet view and it continues on from 1 day to the next.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Datasheet View shows all of the records in the RecordSource. What is it you want to do, scroll down to the last record?

  7. #7
    scubagal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    21
    Right now when the form opens, (the forms opens automatically when the db is launched), the very first record is showing. I would like it so that when it opens the very last record is showing. I guess this means it is in form view.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Put this in the OnLoad Event procedure.
    Private Sub Form_Load()
    DoCmd.RunCommand acCmdRecordsGoToLast
    End Sub



Please reply to this thread with any new information or opinions.

Similar Threads

  1. Name & Date by Default
    By smarty84handsome in forum Reports
    Replies: 12
    Last Post: 01-21-2012, 12:22 AM
  2. Forms Default Date
    By smarty84handsome in forum Forms
    Replies: 2
    Last Post: 01-09-2012, 07:15 PM
  3. Default Min & Max Date Values in Form
    By alsoto in forum Forms
    Replies: 3
    Last Post: 10-03-2011, 10:54 AM
  4. Default date value
    By Wayne311 in forum Database Design
    Replies: 4
    Last Post: 01-15-2011, 05:38 PM
  5. Default Date in Date Fields
    By rickn in forum Access
    Replies: 5
    Last Post: 04-14-2010, 01:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums