版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、VB(倉庫管理系統(tǒng)源代碼)VB(倉庫管理系統(tǒng)源代碼)VB(倉庫管理系統(tǒng)源代碼)VB(倉庫管理系統(tǒng)源代碼)編制僅供參考審核批準生效日期地址: 電話:傳真: 郵編:1.請購作業(yè)程序Private Sub ComCX_Click()查詢在編號文本框中輸入編號,連接數(shù)據(jù)庫,查詢編號,并將編號,品名,規(guī)格,單位,單價的數(shù)據(jù)分別導(dǎo)入到相應(yīng)文本框。Set CN = New Set Rs = New Provider= Source= & F:VB設(shè)計專用倉庫數(shù)據(jù)資料倉庫數(shù)據(jù)資料.mdb;Persist Security Info=False打開數(shù)據(jù)庫 = adOpenStatic 制定一個靜態(tài)游標 = ad
2、LockOptimistic 設(shè)置鎖定模式為開放式 select * from JLBH where FtextBHSJ Like & % & Trim & % & , CN DoEvents Do Until = True If = False Then (0) (1) (2) (3) (4) End If LoopEnd SubPrivate Sub comFHZY_Click()返回上頁End SubPrivate Sub comQD_Click()錄入數(shù)據(jù)If = Or = Or = Or = Or = Or = Then MsgBox 請將數(shù)據(jù)補充完整! = = = = = = El
3、se Dim cnn As New Connection, rst As New Recordset, fid As Field Dim strSql As String, strconn As String strSql = Select textBHSJ From qgzy where textBHSJ= & Trim & strconn = Provider= Source= strconn = strconn & F:VB設(shè)計專用倉庫數(shù)據(jù)資料倉庫數(shù)據(jù)資料.mdb = strconn Set rst = (strSql) str1 = Insert Into qgzy (textBHSJ
4、,textPMSJ,textGGSJ,textDWSJ,textDJSJ,textQGSJ) str1 = str1 + Values( & Trim & , & Trim & , & Trim & , & Trim & , & Trim & , & Trim & ) str1 (Trim) (Trim) (Trim) (Trim) (Trim) (Trim) MsgBox 數(shù)據(jù)輸入成功! Set Rs = Nothing Set CN = Nothing = = = = = = End IfEnd SubPrivate Sub comsc_Click()刪除If 0 Then For i =
5、 - 1 To 0 Step -1 If (i) Then = (i) = (i) = (i) = (i) = (i) = (i) End If NextEnd IfDim cnn As New Connection, rst As New Recordset, fid As FieldDim strSql As String, strconn As String strSql = Select FtextBHSJ From jlbh where FtextBHSJ= & Trim & strconn = Provider= Source= strconn = strconn & F:VB設(shè)計
6、專用倉庫數(shù)據(jù)資料倉庫數(shù)據(jù)資料.mdb = strconn Set rst = (strSql) If = False Then str1 = Delete from qgzy where FtextBHSJ= & Trim & str1 = = = = = = If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) (i) (i) (i) (i) (i) End If Next End If MsgBox 數(shù)據(jù)已刪除! Else MsgBox 無此數(shù)據(jù)! = = = = = = End IfSet Rs = NothingSet CN = Noth
7、ingEnd Sub以下是listbox串連顯示Private Sub listBHSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPrivate Sub listDJSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPrivate Sub listDWSJ1_Click() If 0 Then For i = -
8、1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPrivate Sub listGGSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPrivate Sub listPMSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPrivate Sub
9、 listQGSLSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd Sub2.增加料號程序Private Sub comFHZY_Click()返回上頁 End SubPrivate Sub comSCBH_Click()刪除If 0 Then For i = - 1 To 0 Step -1 If (i) Then = (i) = (i) = (i) = (i) = (i) End If NextEnd IfDim cnn As New Connection,
10、 rst As New Recordset, fid As FieldDim strSql As String, strconn As String strSql = Select FtextBHSJ From jlbh where FtextBHSJ= & Trim & strconn = Provider= Source= strconn = strconn & F:VB設(shè)計專用倉庫數(shù)據(jù)資料倉庫數(shù)據(jù)資料.mdb = strconn Set rst = (strSql) If = False Then str1 = Delete * from jlbh where FtextBHSJ= &
11、Trim & str1 = = = = = If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) (i) (i) (i) (i) End If Next End If MsgBox 編號已刪除! Else MsgBox 無此編號!請確認后重新輸入 = = = = = End IfSet Rs = NothingSet CN = NothingEnd SubPrivate Sub comZJBH_Click()新增料號If = Or = Or = Or = Or = Then MsgBox 請將數(shù)據(jù)補充完整! = = = = = Else Dim
12、cnn As New Connection, rst As New Recordset, fid As Field Dim strSql As String, strconn As String strSql = Select FtextBHSJ From jlbh where FtextBHSJ= & Trim & strconn = Provider= Source= strconn = strconn & F:VB設(shè)計專用倉庫數(shù)據(jù)資料倉庫數(shù)據(jù)資料.mdb = strconn Set rst = (strSql) If = False Then MsgBox 該編號已存在,不能追加! El
13、se str1 = Insert Into jlbh (FtextBHSJ,FtextPMSJ,FtextGGSJ,FtextDWSJ,FtextDJSJ) str1 = str1 + Values( & Trim & , & Trim & , & Trim & , & Trim & , & Trim & ) str1 (Trim) (Trim) (Trim) (Trim) (Trim) MsgBox 恭喜您,添加成功!End If Set Rs = Nothing Set CN = Nothing = = = = = End IfEnd Sub以下是listbox循環(huán)選中程序Private
14、Sub listBHSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPrivate Sub listDJSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPrivate Sub listDWSJ1_Click() If 0 Then For i = - 1 To 0 Step -1 If (i) Then (i) = True End If Next End IfEnd SubPriv
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024機械設(shè)備的購銷合同范本
- 二零二五版1209兩人共同投資智能家居系統(tǒng)集成合同3篇
- 2024法院簽的離婚協(xié)議算不算離婚
- 2024汽車制造技術(shù)與專利許可合同
- 二零二五版吊車租賃合同安全教育與培訓(xùn)協(xié)議3篇
- 2025年度市政設(shè)施改造出渣承包管理協(xié)議3篇
- 二零二五年度醫(yī)藥產(chǎn)品鋪貨與區(qū)域分銷合同3篇
- 西南政法大學(xué)《無機材料合成與制備》2023-2024學(xué)年第一學(xué)期期末試卷
- 二零二五版LNG液化天然氣運輸船舶改造合同3篇
- 武漢鐵路職業(yè)技術(shù)學(xué)院《教師職業(yè)規(guī)劃與就業(yè)指導(dǎo)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025年中國高純生鐵行業(yè)政策、市場規(guī)模及投資前景研究報告(智研咨詢發(fā)布)
- 2022-2024年浙江中考英語試題匯編:完形填空(學(xué)生版)
- 2025年廣東省廣州市荔灣區(qū)各街道辦事處招聘90人歷年高頻重點提升(共500題)附帶答案詳解
- 中試部培訓(xùn)資料
- 硝化棉是天然纖維素硝化棉制造行業(yè)分析報告
- 央視網(wǎng)2025亞冬會營銷方案
- 北師大版數(shù)學(xué)三年級下冊豎式計算題100道
- 計算機網(wǎng)絡(luò)技術(shù)全套教學(xué)課件
- 屋頂分布式光伏發(fā)電項目施工重點難點分析及應(yīng)對措施
- 廚房的管理流程與制度及廚房崗位工作流程
- 鐵路危險源辨識
評論
0/150
提交評論