Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #18858

Re: VB6 e database *.mdb

From GbC <info@gbcdepot.com>
Newsgroups it.comp.lang.visual-basic
Subject Re: VB6 e database *.mdb
Date 2016-09-01 09:42 +0200
Organization Aioe.org NNTP Server
Message-ID <nq8m5v$kre$1@gioia.aioe.org> (permalink)
References <npp13n$12js$1@gioia.aioe.org> <nppmgf$bs5$1@gioia.aioe.org> <nq2b6h$18rp$1@gioia.aioe.org>

Show all headers | View raw


Il 29/08/2016 23:58, Gulp® ha scritto:
> Il 26/08/16 17:16, GbC ha scritto:
>> Il 26/08/2016 11:11, Gulp® ha scritto:
>>> Ho installato VB6 in Win 10, tutto bene tranne un particolare, se lancio
>>> un programma dentro all'IDE, questo funziona se basato su tabelle office
>>> 97, invece non parte e dà errore se basato su tabelle office 2000.
>>> Come posso rimediare? Cosa manca all' installazione di VB6?
>
>> Per quello che ne so io VB6 supporta fino ad Office 97.

[snip]

Però...

Dao 3.6 con Jet 4.0 supportano fino ad Access 2000.

Inserisci le librerie nel progetto e prova questo codice:

[paste]

Option Explicit
Dim strUser As String
Dim strPassword As String


Private Sub cmdConnect_Click()

Dim cn As New Connection
Dim rs As Recordset

strUser = txtUser
strPassword = txtPassword

'Create the connection.
     cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Password=" & _
     <password> & ";" & "User ID=" & <utente> & ";" & _
     "Data Source=<il tuo db MDB>;Persist Security Info=True;" & _
     "Jet OLEDB:System database=<il file MDW per le credenziali>"


'Create recordset reference and set its properties.
     Set rs = New ADODB.Recordset
     rs.CursorType = adOpenKeyset
     rs.LockType = adLockOptimistic

rs.Open <tabella>, cn, , , adCmdTable

End Sub


[/paste]




-- 
GbC
www.gbc.uno

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

VB6 e database *.mdb Gulp® <gulp@hotmail.it> - 2016-08-26 11:11 +0200
  Re: VB6 e database *.mdb Gulp® <gulp@hotmail.it> - 2016-08-26 11:22 +0200
  Re: VB6 e database *.mdb GbC <info@gbcdepot.com> - 2016-08-26 17:16 +0200
    Re: VB6 e database *.mdb Gulp® <gulp@hotmail.it> - 2016-08-29 23:58 +0200
      Re: VB6 e database *.mdb GbC <info@gbcdepot.com> - 2016-08-30 10:05 +0200
        Re: VB6 e database *.mdb Gulp® <gulp@hotmail.it> - 2016-08-30 10:24 +0200
          Re: VB6 e database *.mdb GbC <info@gbcdepot.com> - 2016-08-31 11:55 +0200
      Re: VB6 e database *.mdb GbC <info@gbcdepot.com> - 2016-09-01 09:42 +0200
        Re: VB6 e database *.mdb GbC <info@gbcdepot.com> - 2016-09-01 09:43 +0200
  Re: VB6 e database *.mdb Greg <greg@alicie.com> - 2016-08-28 23:01 +0200
    Re: VB6 e database *.mdb Gulp® <gulp@hotmail.it> - 2016-08-29 23:27 +0200
  Re: VB6 e database *.mdb Greg <greg@alicie.com> - 2016-08-31 18:51 +0200
    Re: VB6 e database *.mdb Gulp® <gulp@hotmail.it> - 2016-09-01 12:33 +0200
      Re: VB6 e database *.mdb Greg <greg@alicie.com> - 2016-09-01 14:30 +0200
        Re: VB6 e database *.mdb Greg <greg@alicie.com> - 2016-09-01 19:18 +0200

csiph-web