Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Recordset problem

    Hi, here is my situation, in an access database i have a field which has 4
    possible values (they are 'none', '1-2', '3-4', '5ormore') i want to be able
    to select and disply a record count for the field to say how many of each out
    come there are, so if there are 100 records in total i want to be able toshow
    how many there are for none, 1-2, 3-4, 5ormore in turn. I can do this if i
    make a recordset for each one but as this is an online questionnaire with about
    15 questions this doesn't seem like its going to be the best way! can anyone
    help because this is doing my head in! thanks chris

    chrisallen76 Guest

  2. Similar Questions and Discussions

    1. PHP Recordset Paging problem
      I am trying to set up record paging using the simple <<Previous Next>> setup. However, when I click the Next>> link, it doesn't show the rest of the...
    2. Recordset paging problem
      I'm stuck on this one My recordset paging wont work. I've done a search page with a form and a table in it to post 2 values to the result page....
    3. Recordset Problem with Access
      I have created a log in page, which works and the information is routed to an Access database; I have also created a confirm page which is supposed...
    4. Problem with Recordset from SQL Server
      I have just upsized an Access database to MS SQL and have begun converting and testing ASP pages created in Dreamweaver. After creating a Recordset...
    5. recordset while loop problem
      Hi all, I'm trying to write a bit of ASP code topopulate a select box, the data that I'm using to fill the select box is in a recordset - which...
  3. #2

    Default recordset problem

    I've created a recordset and want to set the run-time value to a variable that
    I need in the page. When I created the recordset, the run-time value isn't
    initialized to the variable value. Here is the code DMX generated when I
    created the recordset:

    Dim rsStatus
    Dim rsStatus_numRows
    Dim rsStatus_role

    Set rsStatus = Server.CreateObject("ADODB.Recordset")
    rsStatus.ActiveConnection = MM_DBConn_STRING
    rsStatus.Source = "SELECT STATUS FROM dbo.ABR_ROLE_STATUS_VW WHERE ROLE = '"
    + Replace(rsStatus__strRole, "'", "''") + "'"
    rsStatus.CursorType = 0
    rsStatus.CursorLocation = 2
    rsStatus.LockType = 1
    rsStatus.Open()

    rsStatus_numRows = 0

    The variable rsStatus_role isn't set. I tried manually setting the variable
    as follows:

    Dim rsStatus
    Dim rsStatus_numRows
    Dim rsStatus_role
    rsStatus_role = role

    Set rsStatus = Server.CreateObject("ADODB.Recordset")
    rsStatus.ActiveConnection = MM_DBConn_STRING
    rsStatus.Source = "SELECT STATUS FROM dbo.ABR_ROLE_STATUS_VW WHERE ROLE = '"
    + Replace(rsStatus__strRole, "'", "''") + "'"
    rsStatus.CursorType = 0
    rsStatus.CursorLocation = 2
    rsStatus.LockType = 1
    rsStatus.Open()

    rsStatus_numRows = 0

    the variable role is set before the above code is executed.

    Any help is appreciated. Thanks.
    -D-

    -D- Guest

  4. #3

    Default Re: recordset problem

    Pleae disregard...I corrected the problem:

    Dim rsStatus
    Dim rsStatus_numRows
    Dim rsStatus_role
    rsStatus_role = role

    Set rsStatus = Server.CreateObject("ADODB.Recordset")
    rsStatus.ActiveConnection = MM_DBConn_STRING
    rsStatus.Source = "SELECT STATUS FROM dbo.ABR_ROLE_STATUS_VW WHERE ROLE = '"
    + rsStatus_role + "'"
    rsStatus.CursorType = 0
    rsStatus.CursorLocation = 2
    rsStatus.LockType = 1
    rsStatus.Open()

    rsStatus_numRows = 0

    Thanks,
    -D-

    -D- Guest

  5. #4

    Default recordset problem

    Dear all,

    I have been trying to set up a database in dw8 but seem get error after
    error.

    somebody advised me that this could be a sounds like a rogue extension and
    that this blog article might help
    [url]http://www.tom-muck.com/blog/index.cfm?newsid=53[/url]

    I looked at the information at the blog, uninstalled 3 serverbehaviour
    extensions, but now get the message:

    NAME = JavaScript error while loading Recordset.htm:
    At line 1111 of file "C:\Program Files\Macromedia\Dreamweaver
    8\Configuration\ServerBehaviors\PHP_MySQL\Recordse t.js":
    theStr = theStr.replace(/(?>)*/gi,""); //remove close tags
    SyntaxError: invalid quantifier ?

    I tried changing this? But no joy!! I then repaired dreamweaver 8 and guess
    what no joy again!!

    Does anybody have any idea how to solve this. It's driving me nuts.

    kind regards,
    René


    René Guest

  6. #5

    Default Re: recordset problem

    > somebody advised me that this could be a sounds like a rogue extension and
    > that this blog article might help
    > [url]http://www.tom-muck.com/blog/index.cfm?newsid=53[/url]
    >
    > I looked at the information at the blog, uninstalled 3 serverbehaviour
    > extensions, but now get the message:
    >
    > NAME = JavaScript error while loading Recordset.htm:
    > At line 1111 of file "C:\Program Files\Macromedia\Dreamweaver
    > 8\Configuration\ServerBehaviors\PHP_MySQL\Recordse t.js":
    > theStr = theStr.replace(/(?>)*/gi,""); //remove close tags
    > SyntaxError: invalid quantifier ?
    >
    > I tried changing this? But no joy!! I then repaired dreamweaver 8 and
    guess
    > what no joy again!!
    >
    > Does anybody have any idea how to solve this. It's driving me nuts.
    >
    Did you try the other techniques mentioned in the blog article? Delete or
    rename your local configuration folder. The blog entry mentions where to
    find it. If you delete that, Dreamweaver will be returned to it's installed
    state.


    --
    Tom Muck
    co-author Dreamweaver MX 2004: The Complete Reference
    [url]http://www.tom-muck.com/[/url]

    Extending Knowledge Daily
    [url]http://www.communitymx.com/[/url]


    Tom Muck Guest

  7. #6

    Default Re: recordset problem

    Thanks for the advise tom.

    I have deleted the config folder and it works all fine now.

    Thanks for your help,
    René


    "Tom Muck" <tommuck@NOSPAM.basic-drumbeat.com> wrote in message
    news:e0jdvb$mu6$1@forums.macromedia.com...
    >> somebody advised me that this could be a sounds like a rogue extension
    >> and
    >> that this blog article might help
    >> [url]http://www.tom-muck.com/blog/index.cfm?newsid=53[/url]
    >>
    >> I looked at the information at the blog, uninstalled 3 serverbehaviour
    >> extensions, but now get the message:
    >>
    >> NAME = JavaScript error while loading Recordset.htm:
    >> At line 1111 of file "C:\Program Files\Macromedia\Dreamweaver
    >> 8\Configuration\ServerBehaviors\PHP_MySQL\Recordse t.js":
    >> theStr = theStr.replace(/(?>)*/gi,""); //remove close tags
    >> SyntaxError: invalid quantifier ?
    >>
    >> I tried changing this? But no joy!! I then repaired dreamweaver 8 and
    > guess
    >> what no joy again!!
    >>
    >> Does anybody have any idea how to solve this. It's driving me nuts.
    >>
    >
    > Did you try the other techniques mentioned in the blog article? Delete or
    > rename your local configuration folder. The blog entry mentions where to
    > find it. If you delete that, Dreamweaver will be returned to it's
    > installed
    > state.
    >
    >
    > --
    > Tom Muck
    > co-author Dreamweaver MX 2004: The Complete Reference
    > [url]http://www.tom-muck.com/[/url]
    >
    > Extending Knowledge Daily
    > [url]http://www.communitymx.com/[/url]
    >
    >

    René Guest

  8. #7

    Default Recordset Problem

    I have a weird problem that seems to have popped up on its own.
    It seems that every one of my application recordsets are messing up.

    When I edit or create a new recordset, the wizard shows my table selection
    (from clause) as follows. (This is an example)

    cfquery name="Recordset1" datasource="SVMC"
    SELECT *
    FROM C:\Data Sources\SVMC.users


    It should be

    cfquery name="Recordset1" datasource="SVMC">
    SELECT *
    FROM users

    As a result, no application will work until I manually modify the from clause.

    Any Ideas?





    Flog Guest

  9. #8

    Default Re: Recordset Problem

    <i>As a result, no application will work until I manually modify the from clause.</i>
    I would manually modify it. Prevents another headache later.






    BKBK Guest

  10. #9

    Default Re: Recordset Problem

    Thanks for the reply , but I am looking for a solution, not just a work around, to the strange behaviour. Can anyone provide some more insight?
    Flog Guest

  11. #10

    Default Re: Recordset Problem

    Sounds like a wizard problem, not a ColdFusion one. What are you using to generate your queries?

    Phil
    paross1 Guest

  12. #11

    Default Re: Recordset Problem

    This seems to have started after applying the Dreamweaver MX 8.0.2 update on
    this particular server however not on my other one. Therefore the common
    denominator would be Coldfusion as one Dreamweaver works and this one doesn't.

    Also it does not matter if I create a new recordset or veiw an existing one -
    the from clause changes.

    The error I get is MM_ERROR: -1

    Flog Guest

  13. #12

    Default Re: Recordset Problem

    I would disagree and suggest that it is probably a Dreamweaver issue, but since I don't use Dreamweaver myself, I can't offer any recommendations as to where to look there.

    Phil
    paross1 Guest

  14. #13

    Default Re: Recordset Problem

    <i> I am looking for a solution, not just a work around</i>
    The suggestion is not a workaround. The standard way to write a query in
    Coldfusion is indeed

    <i>cfquery name="Recordset1" datasource="SVMC">
    SELECT *
    FROM users</i>

    It therefore doesn't surprise me that this version works.



    BKBK 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