Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access COM+ in ASP
Message
From
22/04/2002 15:29:13
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
 
 
To
22/04/2002 13:31:03
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00647683
Message ID:
00647802
Views:
15
>Hi, every body:
>

>I have a COM+(Accessdate.getdate) which return a Recordset:
>It has a following Method:
>
>Public Function GetRecorders() as ADODB.RecordSet
> ......
> Set RS = New ADODB.Recordset
> ......
> Set GetRecorders=RS
> ......
>END Function
>
>
>It's ok in VB desktop application, But, in ASP file like this:
>
>
>< % ERROR: 
> ......
> set DN=server.creatobject("Accessdate.getdate")
> set Rs=DN.GetRecorders
> .....
> response.write rs("CName") 'Cname is a field in my datebase
> ......
> % >
>
>That almost alert a Error Message: Type Mistake in response.write RS("Cname"),
>anybody has idea?
>
>
>TIA



I believe your recordset should be
rs.fields!cname.value
or rs.fields("cname").value

hope this helps
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform