|
| Problem med connect til database ? Fra : Morten Simonsen |
Dato : 21-04-02 18:11 |
|
Koden:
-----------------------------------
<!- - #include file="adovbs.inc" - ->
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" &
Server.MapPath ("nyheder.mdb")
Set OnMenu = Server.CreateObject("ADODB.Recordset")
Query = "SELECT * FROM nyheder ORDER BY id"
OnMenu.Open Query, Connect, adOpenStatic, adLockOptimistic '--dette er linie
7--
%>
------------------------------------
Fejl:
-------------------------------------
Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
/it/retteknik.asp, line 7
-------------------------------------
Nogle der kan se hvad fejlen er ? ... jeg kan ikke :(
Venlig Hilsen Morten
| |
Jakob Andersen (21-04-2002)
| Kommentar Fra : Jakob Andersen |
Dato : 21-04-02 20:10 |
|
"Morten Simonsen" <post@simonsen.mail.dk> wrote in message
news:a9us1o$29p$1@sunsite.dk...
> OnMenu.Open Query, Connect, adOpenStatic, adLockOptimistic '--dette er
linie
Prøv at smide en adCmdText i slutningen sådan her:
OnMenu.Open Query, Connect, adOpenStatic, adLockOptimistic, adCmdText
--
Jakob Andersen
| |
Morten Simonsen (21-04-2002)
| Kommentar Fra : Morten Simonsen |
Dato : 21-04-02 20:13 |
|
"Jakob Andersen" <jakob@effectus.dk> wrote in message
news:a9v2na$24e8$1@news.cybercity.dk...
> Prøv at smide en adCmdText i slutningen sådan her:
>
> OnMenu.Open Query, Connect, adOpenStatic, adLockOptimistic, adCmdText
>
Giver samme fejl :(
| |
Jakob Andersen (21-04-2002)
| Kommentar Fra : Jakob Andersen |
Dato : 21-04-02 21:05 |
|
"Morten Simonsen" <post@simonsen.mail.dk> wrote in message
news:a9v358$mbk$1@sunsite.dk...
> Giver samme fejl :(
Jeg kan ikke lige umiddelbart se noget, men prøv at kigge på:
<URL: http://www.adopenstatic.com/faq/800a0bb9.asp>
--
Jakob Andersen
| |
|
|