Results 1 to 7 of 7
  1. #1
    dbalilti is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    53

    Creating Forms/Subforums

    So I am trying to make a forum, and within that forum are three subforums.



    The subforums are essentially controlled by three Tables which is controlled by the Job Number
    I want to be able to select the job number on the forum and see information from each of the subforums (Phases of the Job Number)

    I have attached the DB for analysis

    So far I cant even get the information to show up for one subforum when i select the Job number from the ComboBox

    Help Plz!

    (Biggest problem, When I change comboBox to the Job Number, the subforum wont update with the info for that job #)

    DB_pUBLIC.zip

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    I can't open the DB (I have A2003), but the first question is: did you link the main form and the sub-forms correctly, using the Link Child Fields and Link Master Fields properties of the sub-form controls?

    John

  3. #3
    dbalilti is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    53
    I checked, and Yes I did. I actually Fixed the problem by Combining the 3 Phases and I was able to make a combo box that when i select the Job Number the subforum shows all the phases.
    But i have one Problem, When I select the Job Number, It changes the Record Job Number (I.E The Table Values for Job Numbers Change) I Just want to be able to use the Combo Box to Show me the Records, Not affect them in any way.

  4. #4
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    First, don't bind the combo box to a table field (control source property is blank). Then, after selecting a value in the combo box, use VBA to navigate to the required record in the main form; the subform should automatically show the right records. Here is an example from pne of my own databases:

    Private Sub cboCountry_Name_AfterUpdate()
    '
    ' Go to the country number field, then find that record
    '
    DoCmd.GoToControl "country Number"

    DoCmd.FindRecord Me![cboCountry_name].Column(0), acEntire, , acSearchAll


    HTH

    John

  5. #5
    dbalilti is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    53
    Thankyou! I figured it out. But, as I fix one problem another one pops up lol!, Now when I change the combobox, everything changes accordingly, but I am able to change the fields of the form. If i change The form "Allow Edits" to "No" I cant change the combobox therefore I cant pull the data for it. Any idea?

  6. #6
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    Easy - just set the "Locked" property to true for all the controls (fields) you don't want to be edited. Setting Locked to true does not prevent VBA from changing the data in those fields.

    John

  7. #7
    dbalilti is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    53
    Awesome! Thankyou!, That enough this week lol, My boss will be fairly happy now

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

Similar Threads

  1. Creating a checklist in Access forms
    By bhavani in forum Forms
    Replies: 1
    Last Post: 02-15-2012, 06:01 AM
  2. creating forms using multiple tables
    By mfoster3 in forum Access
    Replies: 0
    Last Post: 03-09-2011, 06:57 AM
  3. Creating input forms for queries?
    By Brujeria5 in forum Queries
    Replies: 1
    Last Post: 08-14-2009, 08:48 AM
  4. Creating professional looking forms.
    By Rameez in forum Forms
    Replies: 6
    Last Post: 06-19-2009, 03:56 AM
  5. Creating Watermark in Access Reports / Forms
    By Alex Motilal in forum Reports
    Replies: 0
    Last Post: 11-21-2008, 07:11 AM

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