Stuck - Jeffrey Bardzell Book MX2004 w/asp,coldfusion,php

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Stuck - Jeffrey Bardzell Book MX2004 w/asp,coldfusion,php

    Have struggled thru to chapter 12 of referenced book. Now at a point where I
    cannot continue as the code doesnt work. I have triple checked everything,
    hoping someone can help. The following code:

    re_tourDetail.Source = "SELECT * FROM tbl_tours INNER JOIN tbl_country ON
    tbl_country.countryID=tbl_tours.country WHERE tbl_country.region=" &
    Request.QueryString("RegionID") & " ORDER BY tbl_country.countryName"
    re_tourDetail.CursorType = 0
    re_tourDetail.CursorLocation = 2
    re_tourDetail.LockType = 1
    re_tourDetail.Open()

    returns the following error message:

    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
    [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in
    query expression 'tbl_country.region='.
    /newland/tours_detail.asp, line 14

    Line 14 is the last line of code posted above. Missing operator? Does
    anybody know whats wrong?

    Thanks,
    Harry Manvel




    hmanvel Guest

  2. Similar Questions and Discussions

    1. Error Message:C:\Program Files\Macromedia\Dreamweaver MX2004\Configuration\ServerModels\ColdFusion\dwscriptsServerImpl.
      I am suddenly getting this error message in Dreamweaver: At the line 576 of file "C:\Program Files\Macromedia\Dreamweaver MX...
    2. Book about: Flex 2.0 and Coldfusion 7
      Hi: i searched a lot to find some resources about Flex 2.0 and Coldfusion 7, but couldn't find any book out there in the market. Do you know any or...
    3. CFC Query - stuck, stuck, stuck
      I am once again trying to use Dreamweaver. Here I want to create my first CFC. I'm following the online tutorial Building Your First Database...
    4. ColdFusion MX 7 (Book) "Traning from the Source"
      Hello, can anyone from Macromedia please tell me if Macromedia will be coming out with a book on the new ColdFusion MX 7 'Training from the Source'...
    5. No code hints for new ColdFusion MX 7 in Dreamweaver MX2004
      I had just downloaded ColdFusion MX 7. And I was viewing one of the online tutorials dealing with the <cfform>. I tried experimenting with the...
  3. #2

    Default Re: Stuck - Jeffrey Bardzell Book MX2004w/asp,coldfusion, php

    I don't have the book with me at the moment, but I'll take a guess at it. If
    the value of Request.QueryString("RegionID") is blank or contains spaces, that
    will cause a syntax error in your SQL. You can get around that by enclosing
    that value in single quotes. Snippet:

    ...tbl_country.region='" & Request.QueryString("RegionID") & "' ORDER...

    delaneypub Guest

  4. #3

    Default Re: Stuck - Jeffrey Bardzell Book MX2004w/asp,coldfusion, php

    Thanks much. Unfortunately that didnt work.
    hmanvel 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