Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What's wrong in that code ??

Status
Not open for further replies.

AlexRezid

Programmer
Jul 17, 2003
27
FR
Hi all !

This script is included in a HTML web page.

Code:
<SCRIPT language=vbs>
<!--
   Sub TestGo(Value As Integer)
      Dim i As Integer
      Dim strsql As String
      set cnn = CreateObject(&quot;ADODB.Connection&quot;)
      set Record2 = CreateObject(&quot;ADODB.Recordset&quot;)
      strsql = &quot;SELECT * FROM InfosClients&quot;
   
      cnn.Open &quot;Provider=Provider=Microsoft.Jet.OLEDB.4.0,
          User ID=Admin,
          Data Source=C:\Mes documents\Fichier Client\Client_db.mdb,
          Mode=Share Deny None,
          Extended Properties=&amp;quot;&amp;quot;,
          Persist Security Info=False,
          Jet OLEDB:System database=&amp;quot;&amp;quot;,
          Jet OLEDB:Registry Path=&amp;quot;&amp;quot;,
          Jet OLEDB:Database Password=&amp;quot;&amp;quot;,
          Jet OLEDB:Engine Type=0,
          Jet OLEDB:Database Locking Mode=1,
          Jet OLEDB:Global Partial Bulk Ops=2,
          Jet OLEDB:Global Bulk Transactions=1,
          Jet OLEDB:New Database Password=&amp;quot;&amp;quot;,
          Jet OLEDB:Create System Database=False,
          Jet OLEDB:Encrypt Database=False,
          Jet OLEDB:Don't Copy Locale on Compact=False,
          Jet OLEDB:Compact Without Replica Repair=False,
          Jet OLEDB:SFP=False&quot;
	
      Record2.Open strsql,cnn
      Record2.MoveFirst
      Record2.Move(Value-1)
      Set Me.Recordset = Record2
   End Sub
-->
</SCRIPT>

What I want to do is going to the &quot;Value&quot; record in my access DB automatically.

Could someone help to debug this script ?

Thanks

Alex
 
You've got:
&quot;Provider=Provider=Microsoft.Jet.OLEDB.4.0,

Is that what you really want???
 
No...

Thanks :p
But it still don't work... :(

Any Idea ?

Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top