Jump to content
cryptorchid

Problema Baza de data in VB

Recommended Posts

Posted

Am incercat sa fac o baza de date in Visual basic 6 da am intampinat niste probleme pe care nu le inteleg

Dau compile la program ..completez toate campurile si imi apare eroarea asta:

29yp4ex.jpg

iar daca dau Debug imi arata:

2llks5u.jpg

si nu stiu de ce..am verificat din nou..baza de date am facut-o bine ...nus tiu ce are? daca stit va rog sa ma ajutati!

Profile e numele la controlul Data

Posted

Nu ai setat recordset.

Activeaza ActiveX in computerul tau si ActiveX Objects Library 2.8(cred) in referinte.

Foloseste codul asta:

Cod in VB 6 pentru o conectie OLEDB la o data de baze in Microsoft folosind ActiveX ca referinta.

Global cnndb As New ADODB.Connection

Public Sub Connection()
Dim cnnString As String
cnnString = App.Path & "\dbname.mdb"
With cnndb
.CursorLocation = adUseClient
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0" _
& ";Data Source=" & cnnString & _
";User Id=admin;Password=;"
.Open
End With

End Sub

Posted

Global cnndb As New ADODB.Connection ? nu merge..e ceva "corupt"..un cuvand gresit pentru ca imi apare cu rosu in code

andrey ce argumenta sa aiba AddNew? :)))

parca stiai Visual basic :) nu stii sa faci o baza de date? :))

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...