Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Recordsets not recognized

Posted on 2003-12-01
9
Medium Priority
?
386 Views
Last Modified: 2010-04-25
I am constantly having problems with Dreamweaver not recognizing recordsets that I have created.  

I create recordsets using the Bindings tab and they Test fine and show up in the Bindings window. However, when I try to create a Server Behavior (using the Plus sign in the Server Behavior tab), I occasionally get an error stating that I need to create a recordset.  This error happens just about every time I try to do an Update Record (yes, all my text boxes are assigned to fields) and sporatically when I try an Insert Record.

Has anyone else come across this? How can I fix this?

I am using DreamWeaver MX, version 6.1.

Here is a screenshot of an error I get. As you can see, it prompts for me to create a recordset even when one exists.
http://lennon.csufresno.edu/~bcs25/error.gif
and another one:
http://lennon.csufresno.edu/~bcs25/error2.gif
0
Comment
Question by:upplepop
8 Comments
 

Expert Comment

by:brisctt
ID: 9855378

What are you trying to develop in....ASP/MS Access or PHP/MySQL?

I've been using Dreamweaver MX for quite some time...mostly in PHP/MySQL.....I always create my recordsets in the server behaviors panel.  

0
 
LVL 4

Expert Comment

by:c_swanky
ID: 9857015
Please post your code... cannot see all of it in the screen shot.

0
 

Author Comment

by:upplepop
ID: 9868146
I am developing in ASP.  The recordsets are made in either the Bindings or Server Behaviors panels.

Here is my code from a relatively simple page. In this case, I try to make a dynamic table (using the button in the Application Panel) and get instructed to add a recordset.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/MISDatabase.asp" -->
<%
Dim ActivityList
Dim ActivityList_numRows

Set ActivityList = Server.CreateObject("ADODB.Recordset")
ActivityList.ActiveConnection = MM_MISDatabase_STRING
ActivityList.Source = "SELECT * FROM Log"
ActivityList.CursorType = 0
ActivityList.CursorLocation = 2
ActivityList.LockType = 1
ActivityList.Open()

ActivityList_numRows = 0
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#C0C0C0">
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000" class="border">
  <tr>
    <td bgcolor="#C0C0C0" class="page_head"><font size="2"><strong>Blank</strong></font></td>
  </tr>
  <tr>
    <td bgcolor="#DDDDDD" class="page_minor">&nbsp; </td>
  </tr>
</table>
</body>
</html>
<%
ActivityList.Close()
Set ActivityList = Nothing
%>
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
LVL 4

Expert Comment

by:c_swanky
ID: 9872704
What are some of the field names in the LOG table?

You are doing just about everything except displaying the recordset value, maybe that's why you are getting that notice.

See code below:  NOTICE the   <%Response.Write("Log_Id")%>   statement.  You will need to replace "Log_Id" with a valid field name from your database.



<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000" class="border">
  <tr>
    <td bgcolor="#C0C0C0" class="page_head"><font size="2"><strong>Blank</strong></font></td>
  </tr>
  <tr>
    <td bgcolor="#DDDDDD" class="page_minor"> <%Response.Write("Log_Id")%> </td>
  </tr>
</table>
0
 

Author Comment

by:upplepop
ID: 10023812
Log_Id is a field name from my database, so that's not the problem.
0
 

Author Comment

by:upplepop
ID: 10112343
Anyone else have any ideas? Otherwise, I'll ask to PAQ this thread.
0
 

Author Comment

by:upplepop
ID: 10160144
For anyone else who has this problem, I'll leave my workaround.

Shut down the program. Open it using the shortcut icon (not by opening a file). Close the blank document it creates and open the document you are working with. This usually resolves the problem.
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 10186093
PAQed, with points refunded (250)

Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question