Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   CSS (https://www.askmehelpdesk.com/forumdisplay.php?f=445)
-   -   Cascading lookup fields... (https://www.askmehelpdesk.com/showthread.php?t=43229)

  • Nov 16, 2006, 10:56 AM
    wideners
    1 Attachment(s)
    Cascading lookup fields...
    Want to use the form frmCardDetails to populate tblCards. Want to select the sport from a lookup field linked to tblSports and then the League from tblLeagues, BUT only displaying the leagues that are included in that sport.

    I have looked at http://support.microsoft.com/kb/209595/en-us and can't seem to make it work. Please advise.

    My database is attached...

    Brice
  • Nov 16, 2006, 11:33 AM
    ScottGem
    First, your table structure needs some work. Using text fields, especially names, for primary keys is not recommended. You should use an autonumber field for your PKs. You also should have a table for player and another table for cards, linked on PlayerID. People names should be broken down into at least first and last. I generally use 5 fields for people names. Finally, you don't need BOTH sport and league as Foreign keys in the Cards table. Since the league is specific to a sport, you can get the sport from the link between league and sport.

    I don't see where you tried to implement the instructions in that article. There are no comboboxes on that form.

    I suggest that you make the design changes I suggested and then try to implement the instructions. If you don't get it to work, then post a revised copy of your database with what you have done and we will try to help further.
  • Nov 16, 2006, 12:26 PM
    wideners
    I understand that there are issues. This is just a sampling of the database. I actually tried following the directions on the MS site with the northwinds db and get the same results. I pick the first field and the second field is just empty. Is there something missing from their directions, like row source or something? I don't get it...

    Brice
  • Nov 16, 2006, 12:54 PM
    ScottGem
    I just reviewed the article. It tells you to create 2 combos and shows you how to set the properties for them. It then tells you to add code to set the Rowsource of the second combo.

    Since there are no combos on the form in your sample, I have no idea how you tried to make this work or what you did wrong. If you want my help, then you will need to follow my suggestions. Before you can start building forms, you need to get your table structure set correctly. Otherwise you will be wasting time.

  • All times are GMT -7. The time now is 07:24 PM.