版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、1、音像管理 cdm.frm Dim yn As New ynOption ExplicitPrivate Sub Combo1_Click()定義yn 為 yn 類Me.PopupEnd Sublist彈出 LIST 菜單Private Sub Combo1_KeyDown(KeyCode AsIf KeyCode = 13 Theneger, Shift Aseger)如果按回車鍵就添加一個(gè)bo1.AddItembo1.SelStart = 0 bo1.SelLength = Len(bo1.Textbo1.Text)End If End SubPrivate Sub comsel_Key
2、Press(Index Aseger, KeyAscii Aseger)If KeyAscii = 13 Then Call search_Click(0)End IfEnd Sub如果按回車鍵就執(zhí)行查詢功能Private Sub dele_Click()bo1.RemoveItemEnd SubPrivate Sub delecd_Click() msg = 刪除音像Me.TabStrip1.Tabs(4).Selected = True Dim a As Stringa = Me.MSHFlexGrid1.TextMe.MSHFlexGrid1.Row = 0bo1.ListIndex單擊
3、后刪除指定4 被選中Me.MSHFlexGrid1.Col = Me.MSHFlexGrid1.Col - 1sel(0).Text = Me.MSHFlexGrid1.TextMe.txtselect(0).Text = a賦值方便查詢Ifsel(0).Text = 影 片sel(0).Text = 導(dǎo)演 Or Orsel(0).Text = 影 片 名 稱 Orsel(0).Text = 影片類型 Orsel(0).Text = 影片格式 Orsel(0).Text = 影片語(yǔ)言 Thendb = select * from 影片資料 where & & Call yn.opendb(db
4、)If Not yn.myrec.EOF Then Call yn.myrec.Delete Call yn.myrec.Updatesel(0).Text & = & Me.txtselect(0).TextMsgBox 銷售管理系統(tǒng)像已成功刪除!, vbInformation + vbOKOnly, 音像制品出租及Call yn.closedbdb = select * from 影 片 資 料Me.txtselect(0).Text & Call yn.opendb(db)where &sel(0).Text & = &Set Me.MSHFlexGrid1.DataSource = y
5、n.myrec Call yn.closedbElseMe.MSHFlexGrid1.Visible = False Me.Frame1.Visible = TrueCall yn.closedb End IfElsedb = select * from 影片資料 where & Call yn.opendb(db)Call yn.myrec.Delete Call yn.myrec.Updatesel(0).Text & = & Me.txtselect(0).TextMsgBox 售管理系統(tǒng)像已成功刪除!, vbInformation + vbOKOnly, 音像制品出租及銷Call yn
6、.closedbdb = select * from 影片資料 where &sel(0).Text & = & Me.txtselect(0).Text& Call yn.opendb(db)Set Me.MSHFlexGrid1.DataSource = yn.myrec Call yn.closedbEnd If End SubPrivate Sub Form_Load() On Error Resume NextMe.Caption = Me.Caption & msgSelect Case msgCase Is = 添加音像 Me.TabStrip1.Tabs(2).Selected
7、 = True For i = 0 To 8Me.txtinfo(i).BackColor = vbWhite Nextbo1.BackColor = vbWhite bo2.BackColor = vbWhite bo3.BackColor = vbWhite bo4.BackColor = vbWhiteMe.txtselect(0).Visible = FalseMe.Labinfo(1).Visible = False設(shè)置白色代表有效sel(0).Visible = False Me.search(0).Visible = Falsebo1.Clear bo2.Clear bo3.Cl
8、earbo4.ClearCall yn.opendb(select * from 影片類型)Do While yn.myrec.EOF = Falsebo2.AddItem yn.myrec.Fields(影片類型) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 影片格式)Do While yn.myrec.EOF = Falsebo3.AddItem yn.myrec.Fields(影片格式) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select
9、* from 影片語(yǔ)言)Do While yn.myrec.EOF = Falsebo4.AddItem yn.myrec.Fields(影片語(yǔ)言) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 自定義)Me.txtinfo(6).Text = yn.myrec.Fields(價(jià)格)Me.txtinfo(5).Text = yn.myrec.Fields(出租價(jià)格)Call yn.closedbCase Is = 修改音像Me.txtselect(0).TabIndex = 0sel(0).TabIndex =
10、 1Me.TabStrip1.Tabs(3).Selected = True For i = 0 To 8Me.txtinfo(i).BackColor = vbWhite Nextbo1.BackColor = vbWhite bo2.BackColor = vbWhite bo3.BackColor = vbWhite bo4.BackColor = vbWhite bo1.Clearbo2.Clear設(shè)置白色代表有效bo3.Clearbo4.ClearCall yn.opendb(select * from 影片類型)Do While yn.myrec.EOF = Falsebo2.Ad
11、dItem yn.myrec.Fields(影片類型) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 影片格式)Do While yn.myrec.EOF = Falsebo3.AddItem yn.myrec.Fields(影片格式) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 影片語(yǔ)言)Do While yn.myrec.EOF = Falsebo4.AddItem yn.myrec.Fields(影片語(yǔ)言) yn.myr
12、ec.MoveNextLoopCall yn.closedbCase Is = 音像查詢Me.TabStrip1.Tabs(1).Selected = True bo1.Visible = FalseFor i = 0 To 8 Me.txtinfo(i).Locked = TrueNext Me.txtselect(0).TabIndex = 0sel(0).TabIndex = 1Case Is = 刪除音像 Me.TabStrip1.Tabs(4).Selected = True Me.txtselect(0).TabIndex = 0sel(0).TabIndex = 1End Sel
13、ectEnd SubPrivate Sub modicd_Click()On Error Resume Nextmsg = 修改音像忽略錯(cuò)誤Me.TabStrip1.Tabs(3).Selected = True Me.MSHFlexGrid1.Row = Me.MSHFlexGrid1.RowSel Me.MSHFlexGrid1.Col = 1Me.txtselect(0).Text = Me.MSHFlexGrid1.Text Me.MSHFlexGrid1.Visible = FalseMe.Frame1.Visible = True確定查詢條件db = select * from 影
14、片資料 where 影片名稱= & Trim(Me.txtselect(0).Text) & Call yn.opendb(db)cdm.txtinfo(0).Text = yn.myrec.Fields(影片)cdm.txtinfo(1).Text = yn.myrec.Fields(影片名稱) cdm.txtinfo(4).Text = yn.myrec.Fields(時(shí)間長(zhǎng)度)cdm.txtinfo(2).Text = yn.myrec.Fields(導(dǎo)演)cdm.txtinfo(3).Text = yn.myrec.Fields(年度)cdm.txtinfo(8).Text = yn.
15、myrec.Fields(影片介紹)cdm.txtinfo(6).Text = yn.myrec.Fields(價(jià)格)bo2.Text = yn.myrec.Fields(影片類型) bo4.Text = yn.myrec.Fields(影片語(yǔ)言) bo3.Text = yn.myrec.Fields(影片格式)cdm.txtinfo(7).Text = yn.myrec.Fields(總數(shù)) cdm.txtinfo(5).Text = yn.myrec.Fields(出租價(jià)格) Call yn.closedbCall yn.opendb(select * from 演員 where 影片Do
16、 While Not yn.myrec.EOF= & Me.txtinfo(0).Text & )bo1.AddItem yn.myrec.Fields(演員).Value yn.myrec.MoveNextLoopCall yn.closedbEnd SubPrivate Sub MSHFlexGrid1_Click()Me.Popupmodimsf彈出修改菜單End SubPrivate Sub qd_Click()Select Case msgCase Is = 添加音像If Me.txtinfo(0).Text ThenFor i = 0 To 8If Me.txtinfo(i).Te
17、xt = ThenMsgBox 對(duì)不起這里的每個(gè)選項(xiàng)你都要填寫!, vbQuestion Exit SubEnd If Nextdb = select * from 影片資料 where 影片名稱= & Me.txtinfo(1).Text & Call yn.opendb(db)If yn.myrec.EOF = False ThenMsgBox 已經(jīng)有這部影片了!, vbQuestion Call yn.closedbElseCall yn.closedbCall yn.add(音像信息) Call yn.add(演員)MsgBox 添加成功!, vbInformation + vbOKO
18、nly, 音像制品出租及銷售管理系統(tǒng) For i = 0 To 4Me.txtinfo(i).Text = NextMe.txtinfo(7).Text = Me.txtinfo(8).Text = bo1.Text = bo1.Clear bo2.Text = bo3.Text = bo4.Text = End IfEnd IfCase Is = 修改音像If Me.txtinfo(0).Text Then Call yn.modi(音像信息) Call yn.modi(演員)MsgBox 修改成功!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)For i
19、 = 0 To 8 Me.txtinfo(i).Text = NextEnd IfCase Is = 刪除音像If Me.txtinfo(0).Text Thendb = select * from 影片資料 where 影片名稱= & Me.txtinfo(1).Text & Call yn.opendb(db)Call yn.myrec.Delete Call yn.myrec.Update Call yn.closedbCall yn.opendb(select * from 演員)yn.mycon.Execute delete from 演員 where 影片Call yn.close
20、db For i = 0 To 8Me.txtinfo(i).Text = Nextbo1.Text = bo2.Text = bo3.Text = bo4.Text = sel(0).Text = Me.txtselect(0).Text = Me.lstinfo.Clear= & cdm.txtinfo(0).Text & MsgBox 管理系統(tǒng)End If End Select像已刪除!, vbInformation + vbOKOnly, 音像制品出租及銷售End SubPrivate Sub qx_Click()Unload MeEnd SubPrivate Sub search_C
21、lick(Index Aseger)Ifsel(0).Text And Me.txtselect(0).Text ThenSelect Case msgCase Is = 修改音像bo1.Clear Call selecCase Is = 音像查詢Me.lstinfo.Clear Call selecCase Is = 刪除音像Me.lstinfo.Clear Call selecEnd Select ElseMsgBox 請(qǐng)輸入查詢條件!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)End If End SubPrivate Sub TabStrip1_C
22、lick()On Error Resume NextSelect Case Me.TabStrip1.SelectedItem.IndexCase Is = 1msg = 音像查詢 Me.Caption = 音像管理 & msgsel(0).Visible = True Me.txtselect(0).Visible = True Me.Labinfo(1).Visible = True Me.search(0).Visible = Truebo1.Visible = False Me.lstinfo.Visible = True Me.MSHFlexGrid1.Visible = False
23、 Me.Frame1.Visible = TrueFor i = 0 To 8 Me.txtinfo(i).Text = Me.txtinfo(i).Locked = TrueNextbo1.Text = bo2.Text = bo3.Text = bo4.Text = sel(0).Text = Me.txtselect(0).Text = Me.lstinfo.ClearFor i = 0 To 8Me.txtinfo(i).BackColor = &H80000004 Nextbo1.BackColor = &H80000004bo2.BackColor = &H80000004bo3.
24、BackColor = &H80000004 bo4.BackColor = &H80000004Case Is = 2msg = 添加音像 Me.Caption = 音像管理 & msgsel(0).Visible = False Me.txtselect(0).Visible = False Me.Labinfo(1).Visible = False Me.search(0).Visible = Falsebo1.Visible = True Me.lstinfo.Visible = False Me.MSHFlexGrid1.Visible = False Me.Frame1.Visib
25、le = TrueFor i = 0 To 8 Me.txtinfo(i).Text = Me.txtinfo(i).Locked = False Nextbo1.Text = bo2.Text = bo3.Text = bo4.Text = bo1.Clear bo2.Clear bo3.Clear bo4.ClearMe.lstinfo.Clear For i = 0 To 8Me.txtinfo(i).BackColor = vbWhite Nextbo1.BackColor = vbWhite bo2.BackColor = vbWhite bo3.BackColor = vbWhit
26、e bo4.BackColor = vbWhiteCall yn.opendb(select * from 影片類型)Do While yn.myrec.EOF = Falsebo2.AddItem yn.myrec.Fields(影片類型) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 影片格式) Do While yn.myrec.EOF = Falsebo3.AddItem yn.myrec.Fields(影片格式) yn.myrec.MoveNextLoopCall yn.closedbCall yn.
27、opendb(select * from 影片語(yǔ)言)Do While yn.myrec.EOF = Falsebo4.AddItem yn.myrec.Fields(影片語(yǔ)言) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 自定義)Me.txtinfo(6).Text = yn.myrec.Fields(價(jià)格)Me.txtinfo(5).Text = yn.myrec.Fields(出租價(jià)格)Call yn.closedbCase Is = 3msg = 修改音像 Me.Caption = 音像管理 & msg
28、sel(0).Visible = True Me.txtselect(0).Visible = True Me.Labinfo(1).Visible = True Me.search(0).Visible = Truebo1.Visible = True Me.lstinfo.Visible = False Me.MSHFlexGrid1.Visible = False Me.Frame1.Visible = TrueFor i = 0 To 8 Me.txtinfo(i).Text = Me.txtinfo(i).Locked = False Nextbo1.Text = bo1.Clear
29、 bo2.Clear bo3.Clear bo4.Clear bo2.Text = bo3.Text = bo4.Text = sel(0).Text = Me.txtselect(0).Text = Me.lstinfo.ClearFor i = 0 To 8Me.txtinfo(i).BackColor = vbWhite Me.txtinfo(i).Locked = FalseNextbo1.BackColor = vbWhite bo2.BackColor = vbWhite bo3.BackColor = vbWhite bo4.BackColor = vbWhiteCall yn.
30、opendb(select * from 影片類型)Do While yn.myrec.EOF = Falsebo2.AddItem yn.myrec.Fields(影片類型) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 影片格式)Do While yn.myrec.EOF = Falsebo3.AddItem yn.myrec.Fields(影片格式) yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 影片語(yǔ)言)Do While
31、 yn.myrec.EOF = Falsebo4.AddItem yn.myrec.Fields(影片語(yǔ)言) yn.myrec.MoveNextLoopCall yn.closedbCase Is = 4msg = 刪除音像 Me.Caption = 音像管理 & msgsel(0).Visible = True Me.txtselect(0).Visible = True Me.Labinfo(1).Visible = True Me.search(0).Visible = Truebo1.Visible = False Me.lstinfo.Visible = True Me.MSHFle
32、xGrid1.Visible = False Me.Frame1.Visible = TrueFor i = 0 To 8 Me.txtinfo(i).Text = Me.txtinfo(i).Locked = TrueNextbo1.Text = bo2.Text = bo3.Text = bo4.Text = sel(0).Text = Me.txtselect(0).Text = Me.lstinfo.ClearFor i = 0 To 8Me.txtinfo(i).BackColor = &H80000004 Nextbo1.BackColor = &H80000004 bo2.Bac
33、kColor = &H80000004 bo3.BackColor = &H80000004bo4.BackColor = &H80000004End SelectEnd SubPrivate Sub txtinfo_KeyPress(Index Aseger, KeyAscii Aseger)If Index = 3 Or Index = 4 Or Index = 5 Or Index = 6 Or Index = 7 Then Select Case KeyAsciiCase Asc(0) To Asc(9) Case ElseKeyAscii = 0MsgBox 請(qǐng)輸入數(shù)字!, vbIn
34、formation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)End Select End IfEnd SubPrivate Sub selec()=查詢過(guò)程On Error Resume NextIfsel(0).Text = 影片 Orsel(0).Text = 影片名稱 ThenMe.MSHFlexGrid1.Visible = False Me.Frame1.Visible = Truedb = select * from 影片資料 where &Me.txtselect(0).Text & Call yn.opendb(db)If yn.myrec.EOF Thensel(0
35、).Text & = &MsgBox 無(wú)像!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)Elsecdm.txtinfo(0).Text = yn.myrec.Fields(影片)cdm.txtinfo(1).Text = yn.myrec.Fields(影片名稱)cdm.txtinfo(4).Text = yn.myrec.Fields(時(shí)間長(zhǎng)度) cdm.txtinfo(2).Text = yn.myrec.Fields(導(dǎo)演)cdm.txtinfo(3).Text = yn.myrec.Fields(年度)cdm.txtinfo(8).Text = y
36、n.myrec.Fields(影片介紹)cdm.txtinfo(6).Text = yn.myrec.Fields(價(jià)格)bo2.Text = yn.myrec.Fields(影片類型) bo4.Text = yn.myrec.Fields(影片語(yǔ)言) bo3.Text = yn.myrec.Fields(影片格式)cdm.txtinfo(7).Text = yn.myrec.Fields(總數(shù)) cdm.txtinfo(5).Text = yn.myrec.Fields(出租價(jià)格) Call yn.closedbCall yn.opendb(select * from 演員 where 影片
37、Do While Not yn.myrec.EOFMe.lstinfo.AddItem yn.myrec.Fields(演員).Value yn.myrec.MoveNextLoopCall yn.closedbCall yn.opendb(select * from 演員 where 影片Do While Not yn.myrec.EOF= & Me.txtinfo(0).Text & )= & Me.txtinfo(0).Text & )bo1.AddItem yn.myrec.Fields(演員).Value yn.myrec.MoveNextLoop End IfCall yn.clo
38、sedbElseIfsel(0).Text = 導(dǎo)演 Orsel(0).Text = 影片類型 Orsel(0).Text = 影片格式 Orsel(0).Text = 影片語(yǔ)言 Thendb = select * from 影片資料 where & VBA.LCase(Me.txtselect(0).Text) & Call yn.opendb(db)If yn.myrec.EOF Thensel(0).Text & = &MsgBox 無(wú)像!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)Call yn.closedb ElseMe.Frame1.Visi
39、ble = False Me.MSHFlexGrid1.Visible = TrueSet Me.MSHFlexGrid1.DataSource = yn.myrec Call yn.closedbEnd IfElseIf VBA.IsNumeric(Me.txtselect(0).Text) = True Then db = select * from 影 片 資 料 where &Me.txtselect(0).TextCall yn.opendb(db) If yn.myrec.EOF Thensel(0).Text & = &MsgBox 無(wú)像!, vbInformation + vb
40、OKOnly, 音像制品出租及銷售管理系統(tǒng)Call yn.closedb ElseMe.Frame1.Visible = False Me.MSHFlexGrid1.Visible = TrueSet Me.MSHFlexGrid1.DataSource = yn.myrec Call yn.closedbEnd IfElseMsgBox 請(qǐng)輸入數(shù)字!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)End IfEnd IfEnd SubPrivate Sub txtselect_KeyPress(Index As If KeyAscii = 13 ThenCa
41、ll search_Click(0) End IfEnd Sub2、main.frmDim yn As New yneger, KeyAscii Aseger)Option ExplicitPrivate Sub aboutload.Show vbModal End Sub_Click()Private Sub addcd_Click()msg = 添加音像cdm.Show vbModalEnd SubPrivate Sub addma_Click()msg = 添加管理員manger.Show vbModalEnd SubPrivate Sub adduser_Click()msg = 添加
42、新會(huì)員user.Show vbModalEnd SubPrivate Sub backup_Click()Dim bi As BROWSEINFO 必要的變量Dim rtn&,l&, path$,%, t%, SpecIn$, specout$bi.hOwner = Me.hwnd 使框處于屏幕中心bi.lpszTitle = 請(qǐng)選擇文件夾 設(shè)置標(biāo)題文字bi.ulFlags = BIF_RETURNONLYFSDIRS 返回文件夾的類型 l& = SHBrowseForFolder(bi) 顯示框path = Space(512) 設(shè)置字符數(shù)的最大值t = SHGetPathFromIDLis
43、t(ByVall&, ByVal path) 獲得所選的路徑% = InStr(path$, Chr$(0) 從字符串中提取路徑SpecIn$ = Left(path$,- 1)If Right$(SpecIn, 1) = Then specout$ = SpecIn$Elsespecout$ = SpecIn$ & End IfVBA.FileCopy App.path & cd.mdb, specout$ & cd.mdbEnd SubPrivate Sub delema_Click() msg = 刪除管理員manger.Show vbModalEnd SubPrivate Sub de
44、leuser_Click()msg = 刪除會(huì)員 user.Show vbModalEnd SubPrivate Sub Form_Load()If App.PrevInstance = True Then EndEnd Ifloadma.Show vbModal msg = 銷售音像Me.Label1.Caption = 銷售音像End SubPrivate Sub Form_Resize()If Me.WindowSe = 1 Then ElseMe.Height = 8130Me.Width = 11325 End IfEnd SubPrivate Sub gpcx_Click() ms
45、g = 音像查詢 cdm.Show vbModalEnd SubPrivate Sub Label1_Click()If Me.txtselect(0).Text Then Select Case Me.Label1.CaptionCase Is = 銷售音像Call yn.opendb(select * from)影片資料 where 影片名稱= & Me.txtselect(0).Text &yn.myrec.Fields(總數(shù)) = yn.myrec.Fields(總數(shù)) - 1 Call yn.myrec.UpdateCall yn.closedbMsgBox 銷售音像成功!, vbI
46、nformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)Case Is = 出租音像Call yn.opendb(select * from 影片資料 where 影片名稱= & Me.txtselect(0).Text &)yn.myrec.Fields(總數(shù)) = yn.myrec.Fields(總數(shù)) - 1 Call yn.myrec.UpdateCall yn.closedbCall yn.opendb(select * from 客戶日志)Call yn.myrec.AddNewyn.myrec.Fields(客戶yn.myrec.Fields(影片) = Me.t
47、xtselect(1).Text) = Me.txtinfo(0).Textyn.myrec.Fields(借出時(shí)期) = VBA.Date Call yn.myrec.UpdateMsgBox 出租音像成功!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)Call yn.closedbCase Is = 歸還音像Call yn.opendb(select * from 客戶日志 where 客戶and 影片= & Me.txtinfo(0).Text & ) If yn.myrec.EOF Then= & Me.txtselect(1).Text & Msg
48、Box 些用戶沒(méi)租出或已還回!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng)Call yn.closedb ElseCall yn.myrec.Delete Call yn.closedbCall yn.opendb(select * from 影片資料 where 影片名稱= & Me.txtselect(0).Text& )yn.myrec.Fields(總數(shù)) = yn.myrec.Fields(總數(shù)) + 1 Call yn.myrec.UpdateCall yn.closedbMsgBox 歸還音像成功!, vbInformation + vbOK
49、Only, 音像制品出租及銷售管理系統(tǒng)End If End Select ElseExit SubEnd IfEnd SubPrivate Sub modicd_Click()msg = 修改音像cdm.Show vbModalEnd SubPrivate Sub modima_Click()msg = 修改管理員manger.Show vbModalEnd SubPrivate Sub modiuser_Click()msg = 修改會(huì)員user.Show vbModalEnd SubPrivate Sub pd_Click()判斷是否為會(huì)員msg = 查詢會(huì)員user.Show vbMod
50、alEnd SubPrivate Sub pd_MouseMove(Button As是否為會(huì)員eger, Shift Aseger, X As Single, Y As Single) 判斷pd.ForeColor = &HFF0000End SubPrivate Sub quit_Click()EndEnd SubPrivate Sub search_Click(Index Aseger)On Error Resume Next Me.txtinfo(0).Text = Me.txtinfo(1).Text = Me.txtinfo(3).Text = Me.txtinfo(4).Text
51、 = Me.txtinfo(5).Text = Me.txtinfo(6).Text = Me.txtinfo(8).Text = Me.txtinfo(9).Text = Me.txtinfo(7).Text = Me.txtinfo(12).Text = Me.lstinfo.ClearCall yn.opendb(select * from 影片資料 where 影片名稱= & Me.txtselect(0).Text & ) If yn.myrec.EOF ThenMsgBox 沒(méi)有此影片!, vbInformation + vbOKOnly, 音像制品出租及銷售管理系統(tǒng) Call y
52、n.closedbElseMe.txtinfo(0).Text = yn.myrec.Fields(影片)Me.txtinfo(1).Text = yn.myrec.Fields(影片名稱)Me.txtinfo(3).Text = yn.myrec.Fields(導(dǎo)演)Me.txtinfo(4).Text = yn.myrec.Fields(年度)Me.txtinfo(5).Text = yn.myrec.Fields(時(shí)間長(zhǎng)度) Me.txtinfo(6).Text = yn.myrec.Fields(影片語(yǔ)言) Me.txtinfo(8).Text = yn.myrec.Fields(影片
53、類型) Me.txtinfo(9).Text = yn.myrec.Fields(影片格式) Me.txtinfo(7).Text = yn.myrec.Fields(影片介紹) Me.txtinfo(12).Text = yn.myrec.Fields(總數(shù)) Call yn.closedbCall yn.opendb(select * from 演員 where 影片Do While Not yn.myrec.EOFMe.lstinfo.AddItem yn.myrec.Fields(演員).Value yn.myrec.MoveNextLoopCall yn.closedb= & Me.
54、txtinfo(0).Text & )Call yn.opendb(select * from 客戶日志 where 客戶= & Me.txtselect(1).Text & and影片= & Me.txtinfo(0).Text & )If Not yn.myrec.EOF ThenMe.Text1.Text = yn.myrec.Fields(借出時(shí)期) Call yn.closedbElseCall yn.closedb End IfEnd IfEnd SubPrivate Sub selema_Click()msg = 管理員查詢manger.Show vbModalEnd SubPr
55、ivate Sub seleuser_Click()msg = 查詢會(huì)員user.Show vbModalEnd SubPrivate Sub setf_Click()setff.Show vbModalEnd SubPrivate Sub_Click()Dim bi As BROWSEINFO 必要的變量Dim rtn&,l&, path$,%, t%, SpecIn$, specout$bi.hOwner = Me.hwnd 使框處于屏幕中心bi.lpszTitle = 請(qǐng)選擇文件夾 設(shè)置標(biāo)題文字bi.ulFlags = BIF_RETURNONLYFSDIRS 返回文件夾的類型 l& =
56、 SHBrowseForFolder(bi) 顯示框path = Space(512) 設(shè)置字符數(shù)的最大值t = SHGetPathFromIDList(ByVall&, ByVal path) 獲得所選的路徑% = InStr(path$, Chr$(0) 從字符串中提取路徑SpecIn$ = Left(path$,- 1)If Right$(SpecIn, 1) = Then specout$ = SpecIn$Elsespecout$ = SpecIn$ & End IfVBA.FileCopy specout$ & cd.mdb, App.path & cd.mdbEnd SubPri
57、vate Sub TabStrip1_Click()Me.Label1.Caption = Me.TabStrip1.SelectedItem.Caption Select Case Me.TabStrip1.SelectedItem.IndexCase Is = 1msg = 銷售音像 Me.txtinfo(0).Text = Me.txtinfo(1).Text = Me.txtinfo(3).Text = Me.txtinfo(4).Text = Me.txtinfo(5).Text = Me.txtinfo(6).Text = Me.txtinfo(8).Text = Me.txtin
58、fo(9).Text = Me.txtinfo(7).Text = Me.txtinfo(12).Text = Me.lstinfo.Clear Me.Label2.Visible = FalseMe.Text1.Visible = FalseCase Is = 2msg = 出租音像 Me.txtinfo(0).Text = Me.txtinfo(1).Text = Me.txtinfo(3).Text = Me.txtinfo(4).Text = Me.txtinfo(5).Text = Me.txtinfo(6).Text = Me.txtinfo(8).Text = Me.txtinf
59、o(9).Text = Me.txtinfo(7).Text = Me.txtinfo(12).Text = Me.lstinfo.Clear Me.Label2.Visible = FalseMe.Text1.Visible = FalseCase Is = 3msg = 歸還音像 Me.txtinfo(0).Text = Me.txtinfo(1).Text = Me.txtinfo(3).Text = Me.txtinfo(4).Text = Me.txtinfo(5).Text = Me.txtinfo(6).Text = Me.txtinfo(8).Text = Me.txtinfo
60、(9).Text = Me.txtinfo(7).Text = Me.txtinfo(12).Text = Me.lstinfo.Clear Me.Label2.Visible = True Me.Text1.Visible = TrueEnd SelectEnd SubPrivate Sub Toolbar1_ButtonClick(ByVal Button AsctlLib.Button)Select Case Button.Index Case 1msg = 音像查詢cdm.Show vbModal Case 4load.Show vbModal Case 2msg = 查詢會(huì)員user
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度代收貨款服務(wù)協(xié)議書安全與隱私保護(hù)4篇
- 二零二五年度木材行業(yè)環(huán)保評(píng)估與治理合作協(xié)議4篇
- 2025年度智能停車場(chǎng)場(chǎng)地經(jīng)營(yíng)權(quán)轉(zhuǎn)讓合同范本4篇
- 二零二五年度存款居間代理傭金分配合同3篇
- 二零二五版城市綜合體樓頂廣告位租賃管理細(xì)則4篇
- 2025版大連冷鏈配送中心冷庫(kù)設(shè)施改造與申舟制冷服務(wù)合同4篇
- 二零二五年社區(qū)公共區(qū)域保潔員工聘用協(xié)議3篇
- 2025年度墓地陵園墓碑石材開(kāi)采與加工合同4篇
- 2025年度新能源車輛代理商合作協(xié)議書3篇
- 二零二五年度高速公路服務(wù)區(qū)停車位使用權(quán)購(gòu)買合同范本4篇
- 2025年度房地產(chǎn)權(quán)證辦理委托代理合同典范3篇
- 柴油墊資合同模板
- 湖北省五市州2023-2024學(xué)年高一下學(xué)期期末聯(lián)考數(shù)學(xué)試題
- 城市作戰(zhàn)案例研究報(bào)告
- 【正版授權(quán)】 ISO 12803:1997 EN Representative sampling of plutonium nitrate solutions for determination of plutonium concentration
- 道德經(jīng)全文及注釋
- 2024中考考前地理沖刺卷及答案(含答題卡)
- 多子女贍養(yǎng)老人協(xié)議書范文
- 彩票市場(chǎng)銷售計(jì)劃書
- 骨科抗菌藥物應(yīng)用分析報(bào)告
- 支付行業(yè)反洗錢與反恐怖融資
評(píng)論
0/150
提交評(píng)論