+ Reply to Thread
Results 1 to 2 of 2

Thread: Show records that contain Null Values

  1. #1
    Registered User
    Join Date
    11-05-2011
    Location
    Missouri
    MS-Off Ver
    Office 2010, VBA 7.0
    Posts
    75

    Show records that contain Null Values

    Hello all,

    Thanks in advance, I have a dilema hopefully someone here can help shed some light on.

    I have created a query by form in access 2010. Within the form I have several combo boxes and when the user selects a value from the combo box it fills in the text box next to it with the value just selected, now the query checks the Textbox and renders the criteria desired. No problem works great, until I added a column in the query that some records do not have values in.

    Example of criteria I placed in the columns(cells) that all have values:
       IIf([Forms]![ProductInformationForm]![Text186] Is Null,[ProductDetails]![ProductPackageType],[Forms]![ProductInformationForm]![Text186])

    This works great, like I said for the ones with values, but I have tried this same SQL in the column that not all records have values, and no matter what is selected on the form, the query shows no records.

    Please help, thank you...
    Last edited by pike; 12-03-2011 at 12:32 AM. Reason: correct code tags

  2. #2
    Forum Guru davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2007
    Posts
    1,879

    Re: Show records that contain Null Values

    Can you post the entire query? I'm especially interested in the WHERE clause.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0