VB6 adodb + Listview + Access part1
Vložit
- čas přidán 7. 09. 2024
- You can also like my page on facebook / tutorzick
Sub LoadData()
Dim list As ListItem
Dim X As Integer
ConnectDB1
rs.Open "Select * from Information", db, 3, 3
Do Until rs.EOF
Set list = ListView1.ListItems.Add(, , rs(0))
For X = 1 To 7
list.SubItems(X) = rs(X)
Next X
rs.MoveNext
Loop
Set rs = Nothing
db.Close: Set db = Nothing
Public Sub ConnectDB()
path = App.path & "\transactions.mdb"
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = " & path
End Sub
Napakalaking tulong po maraming salamat sir!
@jmoclassic08 yup.. pero ung tutorial na ito ay para lang sa Listview+Acess
hahahaah i got it.tnx. you didnot show the Ado connection access to vb6 but i knew it.tnx.
Thank You so much bro ! Great help
sana may Daily Time Record din na tutorial 🙂
wow. pinoy. nice
nice tutorial thx man it help me a lot :)
salamat po sa tutorial !
THank...!
nakatulong po sa akin to :)) salamat.
for assessment and evaluation process of enrollment poh.
pano poh ba iblock ung rows nang database kapag naload na po sya sa form habang nakarun ung program, about acquiring prerequisite subjects poh for next semester and knowing the student status.
ok kung d mkita, ang ilalagay na path ng pla yung location ng mdb
@data08justin uupload ko ung part 2 as soon as possible.. busy kasi sa work
Thanks you. :-bd
bkt laging type mismatch sken khit tama naman lhat ng kinopya ko
public db as new adodb.connection bkit walang lumalabas na adodb.connection
d po ba pwedeng public db as connection????
how do i store data from listview to ms access in vb6.0
yes gumana din salamat
index out of bounds :( whats that means?
Run time Error di gumagana sakin to ow .. >> db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = " & path please Help ! Super Need kasi :((
Public Sub ConnectDB()
path = App.path & "\transactions.mdb" db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = " & path
end sub
ito yung sa akin!..
Public Sub ConnectDB()
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Saint Dominic Database\Installer\Saint Dominic Sub-parish.mdb;Persist Security Info=False"
End Sub
Palitan lng ang source kung saan naka
di ko po makit yung dulo data source; "&" ??????
Friend, it shows INVALID PROPERTY on list.Subitems(x)=rs(x)
Plz help
ERROR compiler error Sub or Function not define in ConnectDB
Magturo ka ng sarili mo .. buti nga sya nakakatulong e.
pwede naman rekta sa database eh !!
di poba pwede adodc ang gmitin q sa pag connect ng listview?
d ko kase ma intindihan ung codes mo. hahahah pasensya na bagohan palang
ako sa vb6.
pede ba mag compute sa listview table??
@vAMFiXED ilan po ba ung data fields mo?
Bakit po lumalabas "Invalid use of Null" sa part po ng list.SubItems(X) = rs(X)
It's because you don't have available data in your listview or access. You can watch the second part
nd ko po napa2 run bqt po kya??
anung os gamit nyo???
@t3nkyu
you mean that it depends on how fields you created? ..
what does this means?
Integer ConnectDB1 rs.Open "Select * from Information", db, 3, 3
ON THE last .. "db,3,3"?
3 rows and 3 column?
by the way .. thanks for your tutorial!
please make more :D
ano ung ibig sabihin ng (db,3,3)
??
mapakaangas sir
Public Sub connectdb()
path = App.path & "\sample.mdb"
db.Open "Provider=MICROSOFT.JET.OLEDB --- pwede po ilagay young ka sumpay salamat po"
End Sub
@jmoclassic08 ok :) noob kung noob..
ang bilis naman masyado :)
Sorry Nauuna ung Salita :))
not working un code mo
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = " & Path
ano kasunod niyan
Did you get help
Data Source = " & App.path & "\ DATABASENAME.mdb;"
Yan po kasunod nyan. Caps lock DATABASENAME yan po ang database name nyo.