Results 1 to 5 of 5
  1. #1
    Richard_Marx is offline Advanced Beginner
    Windows 7 32bit Access 2000
    Join Date
    Jul 2013
    Posts
    36

    One Calendar For Multiple Date Fields

    I have about 5 date fields that need to be entered on a user form. Rather than have each one be a combo box and it's own calendar, is there a way to have ONE calendar that will display beside each date field?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Are you still using MS Access 2000?

  3. #3
    Richard_Marx is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2013
    Posts
    36
    Quote Originally Posted by RuralGuy View Post
    Are you still using MS Access 2000?
    Ah, no. I updated my profile just a few minutes ago. I have moved on to Access 2013

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    If a bound field is a DateTime field then MS Access can present a calendar for each control.

  5. #5
    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
    You can also make this easier on your users, not requiring them to click on the calendar icon, by having the DatePicker appear when the Control has Focus:

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

    To have it only do this if the Control is empty:

    Code:
    Private Sub DateControlName_GotFocus()
    
    If Nz(Me.DateControlName,"") = "" Then
      DoCmd.RunCommand acCmdShowDatePicker
    End If
    
    End Sub

    Linq ;0)>

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

Similar Threads

  1. Replies: 4
    Last Post: 04-22-2015, 05:50 AM
  2. Sum of multiple fields with same date
    By vincentsp in forum Queries
    Replies: 14
    Last Post: 02-02-2015, 08:49 AM
  3. Replies: 9
    Last Post: 11-25-2013, 04:33 PM
  4. Replies: 12
    Last Post: 05-07-2012, 12:41 PM
  5. Date Range Report with Multiple Date Fields
    By StevenCV in forum Reports
    Replies: 13
    Last Post: 02-29-2012, 08:29 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