nonprogrammer
Technical User
Hi,
I get the following error
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'CLng'
/aqpc/wb/updateform.asp, line 12
everything was working well and then all of the sudden it stop working.
here is what my code looks like
help please
I get the following error
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'CLng'
/aqpc/wb/updateform.asp, line 12
everything was working well and then all of the sudden it stop working.
here is what my code looks like
Code:
<%
'Dimension variables
Dim adoCon 'Holds the Database Connection Object
Dim rsiddb 'Holds the recordset for the record to be updated
Dim strSQL 'Holds the SQL query for the database
Dim lngRecordNo 'Holds the record number to be updated
'Read in the record number to be updated
lngRecordNo = CLng(Request.QueryString("ID"))
'Create an ADO connection odject
Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("form.mdb")
'Set an active connection to the Connection object using DSN connection
'adoCon.Open "DSN=iddb"
'Create an ADO recordset object
Set rsGuestbook = Server.CreateObject("ADODB.Recordset")
'Initialise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT userstable.* FROM aq WHERE ID=" & lngRecordNo
'Open the recordset with the SQL query
rsiddb.Open strSQL, adoCon
%>
help please