Results 1 to 3 of 3
  1. #1
    athyeh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    170

    Lookup Wizard over Multiple Fields

    Hello All,



    I am creating a form where a user inputs data into my main table. There will be two users inputting data using this form. One user identifies Operators by name, and the other user identifies Operators by Org ID.

    In the form field "Operator" I am trying to create a lookup menu that allows the user to type/copy+paste/select EITHER name OR Org ID, but have so far been unsuccessful.

    Through the lookup wizard I have managed to have the drop-down menu show both Name and Org ID (Looks like: John | 11351), and the user can input Name, but if the user just inputs Org ID, it returns an error that the message is not in the right format.

    Can anybody help please and thank you.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I don't think you can do it the way you want, however what you can do is capture the user by their windows login (assuming they log into your network) and use that to determine whether you show a combo box with the orgID or the user name.

    Another option to consider would be to have an unbound 'search' field, the user puts in the string you're searching for and finds the appropriate record in your list of operators, just make sure you're always storing the PK of the table driving the combo box.

    Here's an example:

    http://www.opengatesw.net/ms-access-...pe-Access.html

  3. #3
    athyeh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    170
    Thank you very much for your replies. This thread combined with input on another thread has been solved.

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

Similar Threads

  1. lookup wizard
    By dafdek in forum Access
    Replies: 1
    Last Post: 01-10-2013, 04:57 PM
  2. One lookup to pull through multiple fields
    By simon238 in forum Access
    Replies: 13
    Last Post: 12-03-2012, 02:06 PM
  3. lookup wizard
    By bigmac in forum Access
    Replies: 1
    Last Post: 03-10-2012, 02:09 PM
  4. Multiple fields to the same Lookup Table
    By igooba in forum Database Design
    Replies: 9
    Last Post: 01-03-2012, 04:14 PM
  5. Lookup wizard
    By VLI in forum Forms
    Replies: 7
    Last Post: 01-28-2011, 09:25 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