Results 1 to 5 of 5
  1. #1
    Dented is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2018
    Posts
    3

    Region and Zipcode

    Hi,

    I am new to Access and new to forums in general. Please excuse me if I do not frame this question well.

    I have a table that groups Zip Codes into Regions. Another table uses these Zip Codes to display (among other things) Plants that bloom in this Zip Code at a certain time of year.
    When I enter the parameter Region, the result I get is one record per Zip Code for each Plant. So for example, 20 lines of Climbing Aster because there are 20 Zip Codes in the Region.

    What is a simple way to only return one Plant per Region?



    Thanks,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    It would help to see the SQL of your query. It sounds like you have zip code as a field with Group By, and you don't want it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Dented is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2018
    Posts
    3
    Hi pbaldy,

    Thanks for replying and sorry I took so long to respond. I hope this is what you were asking for.

    SELECT qselCriteria_GardenSize.GardenSizeID, qselCriteria_GardenSize.GardenSizeName, qselCriteria_HardinessZones.HardinessZoneID, qselCriteria_HardinessZones.dbo_HardinessZone.Name , qselCriteria_Light.LightTypeID, qselCriteria_Light.Name, qselCriteria_SoilMoisture.SoilMoistureID, qselCriteria_SoilMoisture.GardenSoilMoistureName, dbo_Plant.CommonName, dbo_Plant.ScientificName
    FROM qselCriteria_GardenSize, dbo_BF_Plant INNER JOIN (((qselCriteria_HardinessZones INNER JOIN dbo_Plant ON qselCriteria_HardinessZones.PlantID = dbo_Plant.PlantID) INNER JOIN qselCriteria_Light ON dbo_Plant.PlantID = qselCriteria_Light.PlantID) INNER JOIN qselCriteria_SoilMoisture ON dbo_Plant.PlantID = qselCriteria_SoilMoisture.PlantID) ON dbo_BF_Plant.PlantID = dbo_Plant.PlantID;

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    @Dented

    Here is a link to info in several formats related to Database Planning and Design.

    I strongly suggest you work through the tutorials from RogersAccessLibrary that are identified in the linked info. Create a description of what you are trying to accomplish in plain simple English, then build a data model as per the tutorials. Test it with sample scenarios and when you have the logic and structure working, that's when to design the database with Access. You will have a blueprint to follow.

    There are other tutorials and videos to assist with concepts and analysis.

    Good luck with your project.

  5. #5
    Dented is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2018
    Posts
    3
    I'm going to take a look at that right now. Thanks!

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

Similar Threads

  1. format zipcode in form
    By Slush in forum Forms
    Replies: 2
    Last Post: 08-04-2016, 07:45 AM
  2. Add Leading 0 to a Zipcode
    By tylerpickering in forum Queries
    Replies: 8
    Last Post: 04-01-2014, 12:22 PM
  3. Replies: 7
    Last Post: 02-03-2014, 06:32 AM
  4. Zipcode Lookup Autofill
    By jgalloway in forum Access
    Replies: 25
    Last Post: 09-20-2011, 06:54 PM
  5. Looking up a zipcode
    By rbw95662 in forum Forms
    Replies: 1
    Last Post: 03-24-2010, 05:07 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