Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    drhassan is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    10
    Ooh. Sorry for that. I uploaded by mistake the non-updated database.



    Any way, there should be no null values in those four records because they are mandatory.

    I have removed one combobox to follow the test and error concept.

    I didn't change the RowSource of the Combo44 to test it as I'm really thinking to not use any comboboxes in my search form in case this problem is not going to be solved soon. However, let me try your suggestion and coming back to you.

    Thank you for your patience with me and my problem(s).

  2. #17
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if your combo box is drawing from a table and you are using the PK as the bound column but you are looking up the text value of that in your query you'll have to do one of two things.

    1. in your 'search' combo boxes eliminate the bound column and make the text value the bound column

    EDIT: in other words your combo44 ROW SOURCE should be

    Code:
    SELECT [انواع الارساليات].الانواع FROM [انواع الارساليات];

    OR

    2. create a field on your form that is invisible, make the control source of that field

    =combo44.column(1)

    this is assuming that your bound column is 1 and it's the PK of the table with the values in it and the 2nd column actually contains the string you want to search for.

  3. #18
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    one other option, sorry, is that because you're using the ID as the bound column in combo44 you'd have to search the ID field in your query, not the text value

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. SELECT Records based on user input
    By Mattrob in forum Queries
    Replies: 1
    Last Post: 10-10-2013, 12:28 AM
  2. Replies: 3
    Last Post: 03-11-2013, 05:11 PM
  3. Criteria based on user input
    By Alsail77 in forum Queries
    Replies: 5
    Last Post: 08-16-2012, 02:19 PM
  4. Replies: 5
    Last Post: 08-07-2012, 11:14 AM
  5. How do you select a field based on user input?
    By technesurge in forum Queries
    Replies: 5
    Last Post: 06-20-2012, 02:04 PM

Tags for this Thread

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