Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Access and !=

    I'm not sure how to write this so Access will understand it:

    SELECT * FROM some_table WHERE some_field != ''

    What is the secret?

    Jeff
    Jeff Thies Guest

  2. Similar Questions and Discussions

    1. Web Service + Anon Access, but getting 401 Access Denied Error
      I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous...
    2. Network File access using anonymous access
      I have seen a number of entries related to accessing remote resources (files in my case) that need to reside on a remote server. We must leave our...
    3. Access 2002 PDFWriter VBA Code w/WinXP does not work like Access 2000
      I am trying to print an Access 2002 report (Windows XP OS) as a PDF. I had success with Access 2000 in a Windows 2000 environment, but as soon as I...
    4. Access Violation when using Visual Interdev to access Oracle
      I am running Windows 200 Pro, IIS 5.0 and trying to connect to an Oracle 8.1 database. Prior to applying a security patch to W2k, the ASP...
    5. Access denied when creating Access application object
      In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the...
  3. #2

    Default Re: Access and !=

    WHERE some_column <> ''

    WHERE LEN(some_column) > 0

    Also, don't use SELECT *, name your columns...




    "Jeff Thies" <cyberjeff@sprintmail.com> wrote in message
    news:3F306319.1E7E4272@sprintmail.com...
    > I'm not sure how to write this so Access will understand it:
    >
    > SELECT * FROM some_table WHERE some_field != ''
    >
    > What is the secret?
    >
    > Jeff

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: Access and !=

    As always, Thanks.

    Aaron Bertrand - MVP wrote:
    >
    > WHERE some_column <> ''
    >
    > WHERE LEN(some_column) > 0
    Will that also pick up nulls?
    >
    > Also, don't use SELECT *, name your columns...
    Good point. Bad example code.

    Cheers,
    Jeff
    >
    > "Jeff Thies" <cyberjeff@sprintmail.com> wrote in message
    > news:3F306319.1E7E4272@sprintmail.com...
    > > I'm not sure how to write this so Access will understand it:
    > >
    > > SELECT * FROM some_table WHERE some_field != ''
    > >
    > > What is the secret?
    > >
    > > Jeff
    Jeff Thies Guest

  5. #4

    Default Re: Access and !=

    Access, and most other relational databases use a language called SQL
    (Structured Query Language). You may find it helpful to bookmark a webpage
    that contains a reference list of clauses and operators.

    WHERE field <> condition

    Cheers
    Ken

    "Jeff Thies" <cyberjeff@sprintmail.com> wrote in message
    news:3F306319.1E7E4272@sprintmail.com...
    : I'm not sure how to write this so Access will understand it:
    :
    : SELECT * FROM some_table WHERE some_field != ''
    :
    : What is the secret?
    :
    : Jeff


    Ken Schaefer Guest

  6. #5

    Default Re: Access and !=

    Nulls:

    where blablah is not null


    "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    news:%23t9FdW8WDHA.2312@TK2MSFTNGP10.phx.gbl...
    > Access, and most other relational databases use a language called SQL
    > (Structured Query Language). You may find it helpful to bookmark a webpage
    > that contains a reference list of clauses and operators.
    >
    > WHERE field <> condition
    >
    > Cheers
    > Ken
    >
    > "Jeff Thies" <cyberjeff@sprintmail.com> wrote in message
    > news:3F306319.1E7E4272@sprintmail.com...
    > : I'm not sure how to write this so Access will understand it:
    > :
    > : SELECT * FROM some_table WHERE some_field != ''
    > :
    > : What is the secret?
    > :
    > : Jeff
    >
    >

    Bit My Bubbles Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139