Results 1 to 7 of 7
  1. #1
    premis is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    33

    Trouble selecting records from unbound box


    I am using an unbound box on the top of a form where I would like to select a clients name and have the form populate with their info. My problem is that the box will pull up the record by last name, but only pull up the first record with that last name in alphabetical order.

    Example, If I have the following names in my database

    Ben Smith
    John Smith
    Tim Smith

    If I select "john smith" from the drop down "ben smith" will show up, if I select "tim smith" "ben smith" will still show up. If I select "ben smith" the correct record would show up.

    an image of the property sheet is attached
    Click image for larger version. 

Name:	Untitled-1.jpg 
Views:	8 
Size:	197.3 KB 
ID:	8638
    Any ideas?

    Thanks!
    Brad

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Does your Contacts_Extended records have a unique identifier PK?

    Field 1 is the bound column.

    see http://www.techonthenet.com/access/c...bind_index.php

  3. #3
    premis is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    33
    Quote Originally Posted by orange View Post
    Does your Contacts_Extended records have a unique identifier PK?

    Field 1 is the bound column.

    see http://www.techonthenet.com/access/c...bind_index.php
    I tried this suggestion and it still doesn't work. My database does have a unique identifier (they "key" logo, right?).

    Using the steps on that link the combo box won't populate the form with any record. But if I set the bound column to "2" (last name) it will pull the record, but I still have the same problem from my original post.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    In your application do you have a field that can distinguish Ben Smith from Tim Smith? That seems to be what is missing.

    Read this article for more info
    http://forums.aspfree.com/attachment...achmentid=4712

  5. #5
    premis is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    33
    Yep. I have a unique identifier that automatically assigns a number to each record.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please describe that table and the fields involved. Amd how does that table and fields relate to the rowsource of the combo87 from your post #1?
    .

  7. #7
    premis is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    33
    The "Contacts Extended" in the row source is a query that access made when I used the wizard to make the combo box. It contains all the fields as my clients table with the addition of "Contact name" and "File As". There are 50 or more fields, the main fields that are always used are.

    ID, Contact Name, File As, Last Name, First Name

    I hope that helps, I am a pretty big amatuer when it comes to this stuff.

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

Similar Threads

  1. Replies: 3
    Last Post: 02-07-2012, 06:21 PM
  2. selecting all records on continuous form using vb
    By Mclaren in forum Programming
    Replies: 13
    Last Post: 01-03-2012, 12:20 PM
  3. Selecting records based on particular value
    By usman400 in forum Queries
    Replies: 4
    Last Post: 09-30-2011, 07:58 AM
  4. Selecting records within a form
    By crowegreg in forum Programming
    Replies: 29
    Last Post: 08-19-2011, 08:18 AM
  5. Problem Selecting Records for a Report
    By Joe in forum Programming
    Replies: 0
    Last Post: 09-27-2008, 02:27 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