Results 1 to 8 of 8
  1. #1
    Jan22 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    18

    Problems with my query

    So i have made a query witch filters the text you type in your textbox on a form. This is working great, but then this morning I had some records that contain some blank fields. My query does not show those records even if they contain the same text that I would type in my search form. I've searched the internet for answers and only found that access has problems with blank fields. But can I fix this problem? This is my expression in my query of one column:



    Like [Forms]![searchform]![Qprojectomschrijving] & "*"

    Could somebody help me with this?

  2. #2
    akjandu is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    6
    I had a similar problem in the past. Blanks fields (containing null value) are creating problem. Simply update the blank fields to ZLS (Zero length string). Zero length string is a string with no characters in it for example, "". You can use update query to do this.

  3. #3
    Jan22 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    18
    And how do I do that?

  4. #4
    Jan22 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    18
    I can't change the fields to zero length because i've got another form that adds excel sheets with sometimes fields with no value into the database. If i change it i can't add any excel files.

    anyone?

  5. #5
    Jan22 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    18

  6. #6
    akjandu is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    6
    can you please name the forms and tables that you are talking about?

  7. #7
    akjandu is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    6
    So i have changed the "like" expression a little in the query and I have also updated the search fields of table "data" to ZLS.
    Attached Files Attached Files

  8. #8
    Jan22 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    18
    Thnx! this was working before i start copying excel sheets into my database. After i copied new data into my database it could again not be found!
    I think it has something to do with my autonumbres (wich are my Key). When i copie my files i get an error. Null-value can't get into my autonumber field

    Could somebody help me?

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

Similar Threads

  1. Replies: 12
    Last Post: 05-22-2011, 03:49 PM
  2. Query Problems
    By brc in forum Reports
    Replies: 6
    Last Post: 03-24-2011, 11:53 AM
  3. Problems with IIF in query
    By ducecoop in forum Access
    Replies: 1
    Last Post: 11-15-2010, 10:29 AM
  4. SQL Query Problems
    By slaterino in forum Queries
    Replies: 2
    Last Post: 08-26-2010, 09:06 AM
  5. Query problems
    By geoffishere in forum Forms
    Replies: 1
    Last Post: 02-09-2010, 12:43 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