vb6.0登錄界面連接數(shù)據(jù)庫 vb如何將數(shù)據(jù)庫的內(nèi)容導(dǎo)入列表框?
vb如何將數(shù)據(jù)庫的內(nèi)容導(dǎo)入列表框?dimconthoughfundimrssuchfunprivatesubform_load()#39在窗體加載事件中,設(shè)置里兩個文本框內(nèi)容為空,B.text#34#
vb如何將數(shù)據(jù)庫的內(nèi)容導(dǎo)入列表框?
dimconthoughfun
dimrssuchfun
privatesubform_load()#39在窗體加載事件中,設(shè)置里兩個文本框內(nèi)容為空,
B.text#34#34#39系統(tǒng)設(shè)置文本框B內(nèi)容為空
C.text#34#34#39設(shè)置里文本框C內(nèi)容為空
可以打開數(shù)據(jù)庫再連接
#source參數(shù).mdbpersistsecurityinfofalse#34
ifthen
#34select*from尺寸#34,con,1,3
ifrs.eoffalseand then
whileactuallyrs.eof
(#34A#34)#39再添加內(nèi)容到combox中
wend
endif
endsub
privatecombox_click()
ifthen
#34select*from尺寸whereA#39#34ampcombox.textamp#34#39#34,con,1,3
ifrs.eoffalseand then
(#34B#34)#39將查找到的內(nèi)容四個賦給文本框B、C
(#34C#34)
endif
endsub
操作SQLServer數(shù)據(jù)庫,如何在添加記錄后自動行求和?
你單獨寫一個函數(shù)去利用啊,思路如下1、先把這個表做行列轉(zhuǎn)換。
2、根據(jù)轉(zhuǎn)換后的是可以然后用max,min函數(shù)統(tǒng)計。
vb6.0如何連接MYSQL數(shù)據(jù)庫?
1、到mysql網(wǎng)站,下載ODBC驅(qū)動,安裝!
2、到控制面板|管理工具|我的數(shù)據(jù)源里面配置ODBC數(shù)據(jù)源!
3、在VB里面用ado語句2中設(shè)置的數(shù)據(jù)源!