Results 1 to 6 of 6
  1. #1
    JoeyB is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Location
    The Netherlands / Australia
    Posts
    54

    Question Connecting Subform to another Subform

    In my airport database I want to connect two subforms with each other.



    Click image for larger version. 

Name:	Captureaccess2.PNG 
Views:	17 
Size:	95.2 KB 
ID:	14734

    I got a mainform which contains a Combo Box with Airports in it. When you select an airport it will show the aircraft movements of a certain year in subform1 and passengernumbers in subform2. I got data for over 28 years. In subform1 I implemented a combo box with years. But when you select years in this Combobox the data for aircraft movements changes but not for passengernumbers.

    How can I relate them to each other?

    I tried to use the following link in VBA, but couldnt get it to work. http://access.mvps.org/access/forms/frm0031.htm

    Gratitude in advance!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    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
    JoeyB is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Location
    The Netherlands / Australia
    Posts
    54
    Quote Originally Posted by June7 View Post
    I have done exactly the same as been told here. But my problem is that I got two cmb boxes. Airport and Year.
    Click image for larger version. 

Name:	plaatje.PNG 
Views:	15 
Size:	53.6 KB 
ID:	14779
    Through the tutorial you gave me, I related the subforms by year but not by airport. What happens now it is perfectly fine looking up the airmovements but the passenger numbers wont respond to the airport cmbox. How do I relate the airport to the passenger as well?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Not understanding what you are trying to do. Are these forms for data entry? If not, maybe you should really be creating reports.
    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.

  5. #5
    JoeyB is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Location
    The Netherlands / Australia
    Posts
    54
    Quote Originally Posted by June7 View Post
    Not understanding what you are trying to do. Are these forms for data entry? If not, maybe you should really be creating reports.
    The database must be updated in every year, but that is only gonna be done by the administrator. The database is gonna be published and the ones who are gonna use it will not be put in data.

    I am here to learn so excuse me if this is a stupid/ ignorant question, but can the user in the use the reports the same as it would with forms? For example, the user wishes to get information about Toowoomba airport. The user then clicks on a combobox and selects that airport. But I also would like, and my boss wants, to be able to compare airports with each other or with airports from certain states, certain sizes, what kind of operators (council, private, joint or defence). And show diagrams of passenger numbers, airmovements etc.

    Hope that is clear enough, and thank you for your time!

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Primary purposes of forms are for data entry and interface to manage the database. Queries and Reports are intended to manipulate and output data.

    Select airport in combobox and open report with data about that airport. If you have the data, you can compare anything you want.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 04-24-2013, 12:12 PM
  2. Replies: 4
    Last Post: 10-08-2012, 05:33 PM
  3. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  4. Replies: 3
    Last Post: 04-17-2012, 10:28 AM
  5. Replies: 4
    Last Post: 03-30-2012, 01:47 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