Results 1 to 4 of 4
  1. #1
    nika.duncan is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Nov 2013
    Posts
    36

    How to setup filter properties for fields in a table


    Hey all,

    Happy new year to all. I am have created the following tables: VehicleInfo, VehicleMake, VehicleModel, VehicleType and VehicleDetail. I want a situation for the VehicleInfo table where once I select the Vehicle_Make that only Vehicle_Model that are affiliated to that make selected will be filtered. I have just started working on this and want to ensure that the properties for the tables are setup properly. Please see attached file below for any assistance possible.


    MotorVehicle_FuelTracker1.zip

    Thanks,
    Nika

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,574
    You need relationships using foreign keys (FK) in child tables.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    300
    You will first have to properly set up the relationships between the tables. For example Vehicle_make in VehicleInfo must be of the same type (long integer) as VehicleMake# in VehicleMake.

    What you want to realize is called cascading comboboxes. Just look it up.

    Better not use special characters in fieldnames.
    Groeten,

    Peter

  4. #4
    Join Date
    Apr 2017
    Posts
    1,793
    Don't work with tables except only in design time - to test your app! The best approach is to hide all tables from user(s) after your design is working, and enter/edit data only through forms (you have much more control over your data this way).

    And don't use combos as table fields!

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

Similar Threads

  1. Importing failed from Excel to Fields setup to allow multiple values?
    By Brett Sickels in forum Import/Export Data
    Replies: 2
    Last Post: 05-03-2017, 03:26 PM
  2. Proper table properties setup
    By NightWalker in forum Database Design
    Replies: 5
    Last Post: 07-26-2016, 02:10 PM
  3. Replies: 19
    Last Post: 03-23-2015, 03:09 PM
  4. Replies: 14
    Last Post: 11-09-2012, 01:19 PM
  5. One table multiple fields identical properties.
    By swampdonkey in forum Queries
    Replies: 2
    Last Post: 09-29-2006, 10:53 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