Results 1 to 3 of 3
  1. #1
    ezybusy is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2015
    Posts
    119

    Display NOT NULL COLUMN ONLY in query

    Hi everyone,
    i have the following query based on only one table.



    SELECT Tbl_Fertilizers.FertilizerHSCode, Tbl_Fertilizers.Class, Tbl_Fertilizers.FertilizerName, Tbl_Fertilizers.FertilizerForm, Tbl_Fertilizers.N, Tbl_Fertilizers.P2O5, Tbl_Fertilizers.K2O, Tbl_Fertilizers.S, Tbl_Fertilizers.MgO, Tbl_Fertilizers.CaO
    FROM Tbl_Fertilizers
    WHERE (((Tbl_Fertilizers.FertilizerHSCode) Like [CODE] & '*'));

    Not i would like "not to display columns that do not have values" while keeping the parameter [CODE] in place.
    Any idea about how to go about it?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    This idea makes no sense. Just query all columns, ignore the blanks.

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I do not understand either. If you do not want the nulls retrieved, replace your WHERE clause with Is Not Null in the criteria field for FertilizerHSCode

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

Similar Threads

  1. Display alternate column in a query
    By zero3ree in forum Access
    Replies: 6
    Last Post: 07-02-2015, 12:17 PM
  2. Query to display null fields.
    By dazibit in forum Queries
    Replies: 1
    Last Post: 01-20-2014, 04:00 PM
  3. Replies: 1
    Last Post: 12-08-2011, 08:03 AM
  4. Query search wont display null fields
    By Coffee in forum Queries
    Replies: 2
    Last Post: 08-08-2011, 09:00 AM
  5. make query fields not display if null data
    By rivereridanus in forum Queries
    Replies: 1
    Last Post: 07-05-2011, 08:19 AM

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