Results 1 to 6 of 6
  1. #1
    Lounger
    Join Date
    Mar 2010
    Location
    UK
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Morning Loungers!

    Im getting to work on an MS ACCESS 2003 databse that uses a Calendar control, this is something i have never come accross before, and its causing a few headaches in the office.

    There are 2 Calendar controls on one form, one for start date and one for end date, and a combo box for Department.

    The idea being, that by clicking an appropriate start date (1/12/2009 for example) and an appropriate end date (30/12/2010) as well as a Department (Facilities)

    The report should open up with all of the information for the Facilities Department for the month of December. However that does not seem to be the case,

    I beleive my problem to be in getting the values from the calendar control into the query that the report is based upon.

    using the "...Build" option in query builder doesnt show the Calendar Control in the options, and referenceing the names in an almost plausible way doesnt work either ([costdatecode].[startdate].value)
    So, i was wondering if anyone here could give me a pointer or two as, like i said, im really rather stuck by all of this!

    Thank you!

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts
    When I use Calendars, I use the calendar to populate a textbox with a date, and it is the date in the text box that is used by the query.
    Regards
    John



  3. #3
    Lounger
    Join Date
    Mar 2010
    Location
    UK
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    that makes a lot of sense, and will also allow for a bit of validation by the user to make sure the date reads correctly.

  4. #4
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,434
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Christopher,

    Attached are a couple of documents I had stored away, don't remember where I got it, maybe it will help.

    RG
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  5. #5
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts
    Here is a demo of a form with two textboxes. If you double click either, it opens a popup calendar. Double click a date in the calendar and the result is returned to the original textbox.

    [attachment=89030:calendar.zip]
    Attached Files Attached Files
    Regards
    John



  6. #6
    Lounger
    Join Date
    Mar 2010
    Location
    UK
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks guys, i will have to have a look when i get home, (after installing office) as i cant download things whilst at work.

    you really have been a great help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •