Results 1 to 4 of 4
  1. #1
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199

    how to get a pop up calendar on a date field

    Hello, I have a date field in my table which is set to show date picker for dates. I would think that means that the little calendar would pop up when I select into that field, however it does not. I'm trying to put this date field on a form. Does anyone know what I can do to get that calendar to pop up where a user can select the date?

    thanks!

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    This bit of code will make it pop up:

    Code:
    Private Sub YourDateField_GotFocus()
      DoCmd.RunCommand acCmdShowDatePicker
    End Sub

    Replacing YourDateFieldwith the actual name of your Control.

    Linq ;0)>

  3. #3
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    Thanks Linq but I'm getting a 2046 error on that. Any ideas?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    The control must be bound to a date/time type field or set the Format property to Short Date.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Calendar date on a tab page
    By FJM in forum Forms
    Replies: 4
    Last Post: 10-22-2014, 05:18 AM
  2. Replies: 28
    Last Post: 11-16-2013, 06:41 PM
  3. Date ranges using Calendar control
    By LilMissAttack in forum Forms
    Replies: 8
    Last Post: 08-25-2011, 10:04 AM
  4. Replies: 3
    Last Post: 10-12-2010, 11:15 PM
  5. Set Calendar to default to today's date
    By RickM in forum Access
    Replies: 1
    Last Post: 02-22-2009, 04:51 AM

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