Hello,
I hae a DB that is link to Quick Books.
I am trying to simply display Data in a Table called Vendor.
I am getting an error that says " Type mismatch "
it indicates this line of code
Here is all the code:
Thanks in advance
David
I hae a DB that is link to Quick Books.
I am trying to simply display Data in a Table called Vendor.
I am getting an error that says " Type mismatch "
it indicates this line of code
Code:
recordSet.Open("select * from Vendor" , "DSN=DashQB" , connect);
Code:
<%@ LANGUAGE="JScript"%>
<HTML>
<HEAD>
<TITLE>View PO Numbers</TITLE>
</HEAD>
<%
var connect = Server.CreateObject("ADODB.Connection");
var recordSet = Server.CreateObject("ADODB.RecordSet");
recordSet.Open("select * from Vendor" , "DSN=DashQB" , connect);
%>
<BODY leftmargin="0" topmargin="0" rightmargin="0">
<center>
<table width="100%" bgcolor="#CCCCCC" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
</td>
</tr>
<tr>
<table width="100%" >
<tr height="300">
</center><td valign="top" align="center" bgcolor="#999999">
<table width="100%">
<tr>
<th bgcolor="#073c80"><font color="#FFFFFF">ID</th>
</tr>
<%
while(!recordSet.EOF)
{
%>
<tr>
<td bgcolor="#9aadfc"><font size="-1" ><%=recordSet("Name")%></font></td>
</font></tr>
<%
recordSet.MoveNext();
}%>
</script>
</table>
</td>
</tr>
</table>
</tr>
</table>
</center>
</BODY>
</HTML>
David