Results 1 to 6 of 6
  1. #1
    5 Star Lounger bfxtrfcmgr's Avatar
    Join Date
    Aug 2002
    Location
    Fresno, California, USA
    Posts
    995
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Design (relationships?) (2003)

    In the attached (stripped
    Bryan,
    Not the smartest critter on the glacier. . .
    . . .but I'm persistent (does that count?)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Design (relationships?) (2003)

    You have a many-to-many relationship between persons and committees - one person can be a member of several committees, and several persons can be a member of one committee. You need an intermediary table to implement such a relationship.
    See the database attached to Re: Many-to-many relationships (XP, 2000) for a simple example.

  3. #3
    5 Star Lounger bfxtrfcmgr's Avatar
    Join Date
    Aug 2002
    Location
    Fresno, California, USA
    Posts
    995
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Re: Design (relationships?) (2003)

    Guardian Angel:

    Thanks Hans, your demo seems to be precisely what I need in the way of direction; your "teacher's" heart is always evident. I will be working on this through the weekend (between work), but will post my resolution when completed.

    Gratefully,
    Bryan,
    Not the smartest critter on the glacier. . .
    . . .but I'm persistent (does that count?)

  4. #4
    5 Star Lounger bfxtrfcmgr's Avatar
    Join Date
    Aug 2002
    Location
    Fresno, California, USA
    Posts
    995
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Re: Design (relationships?) (2003)

    Hans:

    Playing around with your demo. . .
    Is it just me, or is it true that you cannot remove a student from a course once they've been added?
    I'm getting "Index or primary key cannot contain a null value" if I try to delete a name from the course.

    In my application volunteers come and go with the tide, so I would need to have the ability to delete.
    Bryan,
    Not the smartest critter on the glacier. . .
    . . .but I'm persistent (does that count?)

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Design (relationships?) (2003)

    To delete a student from a course, you must click in the name, then click the Delete Record button on the toolbar (or select Edit | Delete Record), not just clear the combo box. If you clear the combo box, you set the StudentID to null, which is not allowed.

  6. #6
    5 Star Lounger bfxtrfcmgr's Avatar
    Join Date
    Aug 2002
    Location
    Fresno, California, USA
    Posts
    995
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Re: Design (relationships?) (2003)

    Hans:

    Well, of course (twit that I am!)
    A command button in the continuous form will do nicely. I continue to experiment. . .
    Thanks for holding my hand through this.
    Bryan,
    Not the smartest critter on the glacier. . .
    . . .but I'm persistent (does that count?)

Posting Permissions

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