Primary key foreign key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mclueless
    New Member
    • Jan 2008
    • 56

    Primary key foreign key

    I am working with Vb6 Access.How to establish primary key foreign key relationship between tables in access???
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    #2
    Originally posted by mclueless
    I am working with Vb6 Access.How to establish primary key foreign key relationship between tables in access???

    In access...

    ---primary keys---
    open table in design view
    right click row and click primary key

    ---foriegn keys---
    Click Tools > Relationships

    Add the tables

    Drag the filed you need to be a foriegn key to the other table.

    Comment

    • werks
      New Member
      • Dec 2007
      • 218

      #3
      Originally posted by mclueless
      I am working with Vb6 Access.How to establish primary key foreign key relationship between tables in access???
      Click the Tools-->Relationships in MS Access. Select the Table you want to have a relationships and just click the field you want to set to Primary then drag it and drop it to the other table.. Sorry for the explanation, im not really good at it


      Kenneth

      Comment

      • werks
        New Member
        • Dec 2007
        • 218

        #4
        Try this link, it might help you.

        Comment

        Working...