Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008

    Unanswered: Adding records to two tables from my form

    Hi all,
    I am building a database in MSAccess of game statistics and am running into an issue that seems like it should be easily fixed but I just cant figure it out so forgive my newbieness.

    In my form I want to use a lookup for opponents as the same 20-30 will show up over and over again but when a new one comes up I want to be able to just type the team name into the form and have it added to the opponents table as a new record with just that name and an autonumber.

    OpponentID - PK (auto#)

    GameID - PK
    OpponentID - FK lookup (one-to-many Relationship)

    So basically my form is going to be based on my games table.

    Hope that makes sence,
    Last edited by BDevil15; 08-10-08 at 21:25.

  2. #2
    Join Date
    Nov 2007
    Adelaide, South Australia
    Check out the On Not In List property of a combo box. That should lead you in the right direction
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!

    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

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