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

    Calander

    Can someone give me illicit instructions on how to create a user form with a text field that once the user clicks into a pop-up calander is shown on the form and the date selected from the calander is then transferred to the textbox. It would be the case for 2 textboxes, one called hiredDate and one called leftDate.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I'm sure you mean explicit (clear), not illicit (illegal)

    The type of functionality you're looking for wasn't added to Access until access 2007 (Your listed version is 2000). The calendar controls prior to 2007 were clunky to say the least and not always intuitive:

    Let's say you have a form with a field named

    fldDate

    You have an activex control on that form for the calendar control named CalendarControl

    you'd have to have this:

    Code:
    Private Sub CalendarControl_Click()
    flddate = CalendarControl
    End Sub
    so even though when you look at the events available for the calendar control the ON CLICK event isn't there it's still programmable as though it were.

  3. #3
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    I always use the directions listed here and haven't had any issues with it. Just take note that in the example they rename the combo boxes so they aren't ComboBox0 or whatever default is.
    http://fontstuff.com/access/acctut09.htm

  4. #4
    Richard_Marx is offline Advanced Beginner
    Windows 7 32bit Access 2000
    Join Date
    Jul 2013
    Posts
    36
    Quote Originally Posted by jo15765 View Post
    I always use the directions listed here and haven't had any issues with it. Just take note that in the example they rename the combo boxes so they aren't ComboBox0 or whatever default is.
    http://fontstuff.com/access/acctut09.htm
    I'll give that tutorial a looksee. Thank you for that link.

  5. #5
    Richard_Marx is offline Advanced Beginner
    Windows 7 32bit Access 2000
    Join Date
    Jul 2013
    Posts
    36
    Quote Originally Posted by rpeare View Post
    I'm sure you mean explicit (clear), not illicit (illegal)
    LOL yes, sorry I did mean explicit. Sorry about my mistake and good catch on that.

  6. #6
    Richard_Marx is offline Advanced Beginner
    Windows 7 32bit Access 2000
    Join Date
    Jul 2013
    Posts
    36
    from the form textbox hireDate to use this as criteria for a Select query would I use the below syntax to pull the date entry from the form into a query?
    Code:
    ([forms]![form1]![hireDate])

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You don't need the () if you're putting it in the criteria of a query.

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

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