Results 1 to 3 of 3
  1. #1
    BuzzBamm101 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    5

    County Search Help!


    Hello all,

    Question?
    I created a table that stores all the counties that are serviced by a provider, for example, provider-A services Miami-Dade and Broward county but provider-B services Broward and Palm Beach county.

    Refer to the table below for a better understanding:
    (attached)

    Note: On the Access table the provider is listed by a primary key (27-0354806-FL043A) not the name.

    Is there a way that I can search by individual columns where in a form I choose to pull up all the providers in both Miami-Dade and Broward Counties?

    What I am planning on creating is a form that will have all the counties so the user will only have to select the counties needed.

    Once the user selects the counties, a query will run then a report sorted by county and providers that service that county.

    Thank you in advance

    Jorge

  2. #2
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    Yeah, what you do is create a form with a check box or drop down for each county. As the user selects each area, have a VBA function assemble a WHERE STRING. So when you open up the report using docmd.OpenReport(ReportName, View, FilterName, WhereCondition, WindowMode, OpenArgs) you can insert your WHERE STRING in the slot for "WhereCondition".

  3. #3
    BuzzBamm101 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    5
    Quote Originally Posted by dreday View Post
    Yeah, what you do is create a form with a check box or drop down for each county. As the user selects each area, have a VBA function assemble a WHERE STRING. So when you open up the report using docmd.OpenReport(ReportName, View, FilterName, WhereCondition, WindowMode, OpenArgs) you can insert your WHERE STRING in the slot for "WhereCondition".
    Thank you for helping but I don’t know too much about VBA, can you help me in creating the coding needed?

    Thank you again!

    Jorge

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

Similar Threads

  1. Need search help
    By Don Webb in forum Forms
    Replies: 9
    Last Post: 10-27-2011, 05:18 PM
  2. Normalizing various City/County/State combinations (w/out zip)
    By DorkyDuvessa in forum Database Design
    Replies: 2
    Last Post: 05-08-2011, 07:49 PM
  3. Replies: 4
    Last Post: 03-17-2011, 06:17 AM
  4. Replies: 2
    Last Post: 08-31-2010, 08:57 PM
  5. Replies: 1
    Last Post: 03-15-2010, 02:52 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