Results 1 to 7 of 7
  1. #1
    rwahdan@gmail.com is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2015
    Posts
    28

    Exclamation 2 fields in onecombobox

    Hi,

    I have 2 fields that holds phone number 1 and phone number 2 for clients. I need the manager to be able to search for a phone number inside combobox weather he inserts a number from first or second field.

    phone number 1 phone number 2
    555-1234567 555-9876541
    555-9898989 555-8785423


    all 4 numbers should be searchable in one combobox....is that possible?

    database attached...Form1, combobox search engine at the top....



    Thanks,
    Rami

  2. #2
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    he inserts a number from first or second field.
    Inserts where?

    No database attached.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    rwahdan@gmail.com is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2015
    Posts
    28

    attachment DB

    Attached file
    Attached Files Attached Files
    Last edited by rwahdan@gmail.com; 04-01-2017 at 11:43 AM. Reason: adding attachment

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    still not sure what you want - a combo with 2 columns showing numbers side by side? All numbers in one list?
    still don't know where anyone is inserting a number into.
    I made these changes based on what I think you're asking for:
    change combo row source to
    SELECT Tenants.TenantPhone, Tenants.TenantPhone2 FROM Tenants;
    column count = 2
    column widths 1;1 (inches)
    control width = 2
    Last edited by Micron; 04-01-2017 at 12:11 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    rwahdan@gmail.com is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2015
    Posts
    28
    Hi,

    To be clear, I want them in one column....phone 1 and phone 2 listed in one column not 2 separates columns...

    TenantPhone
    0501228293
    00971501228293
    TenantPhone2
    0557626410
    050-7626410

    instead of 2 i need them in 1...
    0501228293
    00971501228293
    0557626410
    050-7626410

  6. #6
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    then combo needs only one column with a row source of
    Code:
    SELECT Tenants.TenantPhone FROM Tenants
    UNION
    SELECT Tenants.TenantPhone2 FROM Tenants;

  7. #7
    rwahdan@gmail.com is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2015
    Posts
    28
    Thanks A lot....It worked

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

Similar Threads

  1. Replies: 3
    Last Post: 04-24-2016, 07:24 AM
  2. Replies: 2
    Last Post: 04-22-2015, 12:28 PM
  3. Replies: 3
    Last Post: 05-03-2014, 11:00 AM
  4. Replies: 8
    Last Post: 08-02-2012, 10:50 AM
  5. Replies: 12
    Last Post: 05-07-2012, 12:41 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