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

    Redudent info in Combobox

    Couple of weeks ago I also posted a question about my database.

    I got 103 airports, and data for over 28 years. For example types of Aircraft movements(domestic, regional, international)

    Airports got their AirportID, years got their YearID. To connect the data to the airports and years I put the AirportID and YearID next to the data. Now the data is connected to the airports and year.

    I made a query for AirMovements and eventually a Form.



    What I would like to achieve in this Form, is that the user would select an airport, a year and then the data would appear what he is requested. But what happens in the Comboboxes is that for you have to look up the airport in year 1994-95 for example. Click image for larger version. 

Name:	CaptureAccess.PNG 
Views:	11 
Size:	22.8 KB 
ID:	14725

    Instead of this, I rather have 103 airports in the combobox and next to it a combobox with 28 years.

    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,770
    Not quite sure about your data structure.

    Maybe use DISTINCT qualifier.

    SELECT DISTINCT AirportID FROM Airports;
    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
    Not quite sure about your data structure.

    Maybe use DISTINCT qualifier.

    SELECT DISTINCT AirportID FROM Airports;
    Works, future looks a bit brighter now ;p

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

Similar Threads

  1. Replies: 3
    Last Post: 10-24-2012, 05:41 PM
  2. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  3. Replies: 3
    Last Post: 01-31-2011, 11:47 AM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Passing specific Combobox info to a query
    By pwdpwd in forum Queries
    Replies: 1
    Last Post: 02-09-2010, 12:53 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