
cexpert
|
| Posted: 12/26/2004, 7:59 AM |
|
I try to manually open a recordset in code mode
here is the following code
SQL = "SELECT * from Tdb_habil order by mois descending"
'query exec
CCOpenRS(Rs,SQL,clsDBConnection1)
where connection1 is the one i defined in my project
i get a Vbscript compilation error: "no bracket for a Sub function call"
CCOpenRS(Rs,SQL,clsDBConnection1)
---------------------------------^
where am i wrong ? thank you
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 12/26/2004, 2:44 PM |
|
There may be couple problems with this syntax, like unnecessary parentheses and a missing parameter.
See: http://msdn.microsoft.com/library/default.asp?url=/libr...ncallingsub.asp http://docs.codecharge.com/studio/html/Components/Funct...P/CCOpenRS.html
However, CCOpenRS is an older function that is no longer used in the documentation examples in CCS version 2.x (I think). Whatever you need to do, take a look at the "Working With Databases" examples in the latest CCS documentation.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|

|
|
|
|