|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Jun 2001
Città: Catania
Messaggi: 2696
|
[RISOLTO] - [VB 2010] - Errore accesso file access
Salve ragazzi,
sto cercando di aprire un database access tramite VB 2010 ma mi viene visualizzato il seguente errore: ![]() Queste le righe di comando per connettermi; dove sta l'errore? Codice:
CnnReg = New ADODB.Connection
RstReg = New ADODB.Recordset
StrCnn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & SystemPath() & DB & ";Jet OLEDB:Database Password=databaseconpassword;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
CnnReg.Open(StrCnn)
StrSql = "SELECT * FROM " & TB & " WHERE IDSeriale <> 0"
RstReg.CursorType = ADODB.CursorTypeEnum.adOpenStatic
RstReg.CursorLocation = ADODB.CursorLocationEnum.adUseClient
RstReg.Open(StrSql, CnnReg)
__________________
Unisciti a noi: http://www.swproduction.altervista.org/ - http://www.enews.altervista.org/
Ultima modifica di lucausa75 : 22-10-2011 alle 13:06. |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Jun 2001
Città: Catania
Messaggi: 2696
|
Risolto cambiando la stringa di connessione:
da Codice:
StrCnn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & SystemPath() & DB & ";Jet OLEDB:Database Password=databaseconpassword;Mode=ReadWrite|Share Deny None;Persist Security Info=False" Codice:
StrCnn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & SystemPath() & DB & ";Jet OLEDB:Database Password=databaseconpassword"
__________________
Unisciti a noi: http://www.swproduction.altervista.org/ - http://www.enews.altervista.org/
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:34.




















