Access 2003 query not same as in CF

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Access 2003 query not same as in CF

    Hello..

    I'm hoping this is simple, but it seems odd to me. I created a query in CF
    and when I run it in the cf page, it returns 0 records. I turned on debugging
    and then reran the query, then cut and paste the query returned in debug mode
    to Microsoft Access. It returns the records I'm expecting. I've used access
    for quite a while now and have had consistent results using this method. I've
    just started using MS access 2003. Any ideas would be greatly appreciated.

    This is my query below:

    SELECT DISTINCT assets.assetid, assets.fileName, assets.filePath,
    assets.description, assets.mediaTypeFK
    FROM mediaType INNER JOIN ((assetKeyword INNER JOIN keywords ON
    assetKeyword.keywordIdFK = keywords.keywordId) INNER JOIN assets ON
    assetKeyword.assetIdFK = assets.assetid) ON mediaType.mediaTypeId =
    assets.mediaTypeFK
    WHERE mediaTypeFK = 1

    AND keywords.keywordDesc Like '*computer*'


    dtubbs Guest

  2. Similar Questions and Discussions

    1. sorting data with asp and access 2003
      I trying to learn how to sort a data in a database by what is put into the input fields. The server script that i'm using is asp and i'll have a...
    2. ACCESS DENIED between 2003 and NT 4.0
      I have two domains, one is Server 2003 (called "ALPHA") with active directory, the other is NT 4.0 (Called "BETA"). I have set up a two way trust...
    3. can't access applications on 2003 server
      I can''t access MS Office applications on a 2003 server unless I'm logged in as administrator. How can I change these settings to allow anyone to...
    4. VPN Access to 2003 Domain
      Try using the fully qualified name when connecting. \\computername.dnsdomain.???\share "Mark Day" <mark.day@NOSPAM_solortec.co.uk> wrote in...
    5. newbie: access db & server 2003
      Hi! I'm a newbie creating my first site with a database and am experiencing the following problem. I have created the site in FrontPage. When...
  3. #2

    Default Re: Access 2003 query not same as in CF

    Bad wildcard character. You can use * in Access, but from CF (through ODBC) you
    need to use %

    SELECT DISTINCT assets.assetid, assets.fileName, assets.filePath,
    assets.description, assets.mediaTypeFK
    FROM mediaType INNER JOIN ((assetKeyword INNER JOIN keywords ON
    assetKeyword.keywordIdFK = keywords.keywordId) INNER JOIN assets ON
    assetKeyword.assetIdFK = assets.assetid) ON mediaType.mediaTypeId =
    assets.mediaTypeFK
    WHERE mediaTypeFK = 1
    AND keywords.keywordDesc Like '%computer%'

    Phil


    paross1 Guest

  4. #3

    Default Re: Access 2003 query not same as in CF

    Thanks that did it.

    Appreciate such a quick response.



    dtubbs 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