Results 1 to 3 of 3
  1. #1
    Kevo is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Location
    Kodiak, Alaska
    Posts
    86

    Linking 2 tables/forms?

    I have two tables/forms

    tblLoad

    LoadID - Autonumber - PK
    LoadDate
    AutoclaveID (machine that load is in)
    LoadNumber (load number in this autoclave this day)
    Employee


    tblBIIncubation

    BIIncubationID - autonumber - pk
    LoadID


    and many more....

    We will use frmLoad for every Load.....but, we only use frmBIIncubation on about every 4th or 5th Load (Test we have to run on certain Loads)


    Currently, when you open frmBIIncubation the LoadID ctl is just 0.....I have not assigned a control source.....

    So, my question is...How would you link these two? I don't want the operator to have to use a look-up for LoadID because it is an autonumber and would mean nothing to them.

    I'm not sure the easiest way......
    If I made frmBIIncubation a subform of frmLoad, could I make it available only if the operator toggles a ctl?

    Can you make a subform (visible)?
    Something like....

    If ctlToggle = True Then_
    Me.subform.Visible = True

    And what if the subform was on a tab control? Could you make the tab visible depending on the toggle?

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Can do either.

    Example from my project to set tab visibility:
    Code:
    .tab1.Visible = True
    .tab2.Visible = True
    .tbxLABNUM.SetFocus
    If Not .tbxSet Like "*1*" Then
    .tab1.Visible = False
    .ctr1.SourceObject = ""
    End If
    If Not .tbxSet Like "*2*" Then
    .tab2.Visible = False
    .ctr2.SourceObject = ""
    End If
    Last edited by June7; 07-29-2011 at 11:26 AM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Kevo is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Location
    Kodiak, Alaska
    Posts
    86
    Thanks, I need to think through this a little further and experiment a little before I ask any other questions.

    I want to make sure I havent missed anything else.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 0
    Last Post: 03-04-2011, 10:28 AM
  2. Linking Database tables and forms
    By shaileen.shah in forum Access
    Replies: 1
    Last Post: 02-16-2011, 03:08 PM
  3. Linking large number of forms and tables
    By jlcaviglia-harris in forum Forms
    Replies: 2
    Last Post: 04-17-2009, 09:19 AM
  4. Resource for using linking tables with forms?
    By narayanis in forum Forms
    Replies: 5
    Last Post: 05-18-2008, 04:11 PM
  5. Linking tables and forms
    By vgatell in forum Access
    Replies: 0
    Last Post: 02-10-2007, 01:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums