E
Eugene Anthony
This is a table created in ms sql:
create table categories
(
CategoryID int IDENTITY,
CategoryDescription varchar(30),
ParentCategoryID int
);
This is a stored procedure created in ms sql:
create procedure usp_retrieveCategories
AS SET NOCOUNT ON
SELECT CategoryID, CategoryDescription FROM categories WHERE
CategoryID >= 1
Return
GO
This is a code to fill my combo box on my .asp page:
<select name="select" class="TextField1">
<%
openDB()
objConn.usp_retrieveCategories, rs
while not rs.eof
%>
<option
value=<%=rs("CategoryID")%>><%=rs("CategoryDescription")%>
<%
wend
CloseDB()
%>
</select>
I am getting an error:
Error Type:
ADODB.Connection (0x800A0E7C)
Parameter object is improperly defined. Inconsistent or incomplete
information was provided.
The error points to objConn.usp_retrieveCategories, rs
How do I solve the problem?
Your help is kindly appreciated.
Regards
Eugene Anthony
create table categories
(
CategoryID int IDENTITY,
CategoryDescription varchar(30),
ParentCategoryID int
);
This is a stored procedure created in ms sql:
create procedure usp_retrieveCategories
AS SET NOCOUNT ON
SELECT CategoryID, CategoryDescription FROM categories WHERE
CategoryID >= 1
Return
GO
This is a code to fill my combo box on my .asp page:
<select name="select" class="TextField1">
<%
openDB()
objConn.usp_retrieveCategories, rs
while not rs.eof
%>
<option
value=<%=rs("CategoryID")%>><%=rs("CategoryDescription")%>
<%
wend
CloseDB()
%>
</select>
I am getting an error:
Error Type:
ADODB.Connection (0x800A0E7C)
Parameter object is improperly defined. Inconsistent or incomplete
information was provided.
The error points to objConn.usp_retrieveCategories, rs
How do I solve the problem?
Your help is kindly appreciated.
Regards
Eugene Anthony