Results 1 to 4 of 4
  1. #1
    Join Date
    May 2004
    Posts
    14

    Unanswered: Collections and Class modules

    I have been searching all of the forums with any success. I can do the following in Excel, but can't seem to move it to Access 2000.

    I have a Calendar form with command buttons for the dates.
    cmdDate0 - cmdDate41. I use the "caption" to show the date.

    Rather than having 42 ...._click() events, I would like to just create a collection of all the command buttons and use a class module to capture a click_event.

    ttfn
    Kicker

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    wonder if the calendar control will make life anuy easier for you?

  3. #3
    Join Date
    May 2004
    Posts
    14
    Actually, it would and I use it a lot for various projects, but the one I am working on right now doesn't have the calendar control available and the company will NOT install it. There is a very strong IT group at corporate and we work on very tight controls.
    ttfn
    Kicker

  4. #4
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    You can't directly use a collection or array as a public property. You can however instantiate a private array and use public properties to add, remove and retrieve elements.

    With that general info aside, I still don't fully understand what you want to do here...
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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