久久久精品网站,成人伊人网,色吧av色av,亚洲AV永久无码精品秋霞电影影院

access數(shù)據(jù)庫(kù)(access數(shù)據(jù)庫(kù)導(dǎo)入excel表格)

前沿拓展:

access數(shù)據(jù)庫(kù)

數(shù)據(jù)庫(kù),顧名思義:數(shù)據(jù)的倉(cāng)庫(kù)。
當(dāng)使用者需要保存的數(shù)據(jù)量不是很大時(shí),我們可以直接將數(shù)據(jù)寫到編輯完全可視化,且內(nèi)置強(qiáng)大的Office編程環(huán)境VBA,無(wú)需第三方編程軟件,即可迅速開發(fā)桌面數(shù)據(jù)庫(kù)系統(tǒng)。


Public filter_text As String '定義為公共變量

Private Sub Command查詢_Click()

filter_text = ""

If Me.員工編號(hào) <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 員工編號(hào) like '*" & Me.員工編號(hào) & "*'"

Else

filter_text = "員工編號(hào) like '*" & Me.員工編號(hào) & "*'"

End If

End If

If Me.部門 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 部門 like '*" & Me.部門 & "*'"

Else

filter_text = "部門 like '*" & Me.部門 & "*'"

End If

End If

If Me.職位 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 職位 like '*" & Me.職位 & "*'"

Else

filter_text = "職位 like '*" & Me.職位 & "*'"

End If

End If

If Me.姓名 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 姓名 like '*" & Me.姓名 & "*'"

Else

filter_text = "姓名 like '*" & Me.姓名 & "*'"

End If

End If

If Me.銷售日期1 <> "" And Me.銷售日期2 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 銷售日期 between #" & Me.銷售日期1 & "# and #" & Me.銷售日期2 & "#"

Else

filter_text = "銷售日期 between #" & Me.銷售日期1 & "# and #" & Me.銷售日期2 & "#"

End If

End If

If Me.銷售額1 <> "" And Me.銷售額2 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 銷售額 >= " & Me.銷售額1 & " and 銷售額<=" & Me.銷售額2

Else

filter_text = "銷售額 >= " & Me.銷售額1 & " and 銷售額<=" & Me.銷售額2

End If

End If

'——————————篩選子窗體

If filter_text <> "" Then

Me.數(shù)據(jù)表子窗體.Form.Filter = filter_text

Me.數(shù)據(jù)表子窗體.Form.FilterOn = True

Else

Me.數(shù)據(jù)表子窗體.Form.FilterOn = False

End If

End Sub

Private Sub Command清空_Click()

員工編號(hào).Value = ""

姓名.Value = ""

部門.Value = ""

職位.Value = ""

銷售日期1.Value = ""

銷售日期2.Value = ""

銷售額1.Value = ""

銷售額2.Value = ""

End Sub

Private Sub Command全部_Click()

Me.數(shù)據(jù)表子窗體.Form.FilterOn = False

End Sub

拓展知識(shí):

前沿拓展:

access數(shù)據(jù)庫(kù)

數(shù)據(jù)庫(kù),顧名思義:數(shù)據(jù)的倉(cāng)庫(kù)。
當(dāng)使用者需要保存的數(shù)據(jù)量不是很大時(shí),我們可以直接將數(shù)據(jù)寫到編輯完全可視化,且內(nèi)置強(qiáng)大的Office編程環(huán)境VBA,無(wú)需第三方編程軟件,即可迅速開發(fā)桌面數(shù)據(jù)庫(kù)系統(tǒng)。


Public filter_text As String '定義為公共變量

Private Sub Command查詢_Click()

filter_text = ""

If Me.員工編號(hào) <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 員工編號(hào) like '*" & Me.員工編號(hào) & "*'"

Else

filter_text = "員工編號(hào) like '*" & Me.員工編號(hào) & "*'"

End If

End If

If Me.部門 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 部門 like '*" & Me.部門 & "*'"

Else

filter_text = "部門 like '*" & Me.部門 & "*'"

End If

End If

If Me.職位 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 職位 like '*" & Me.職位 & "*'"

Else

filter_text = "職位 like '*" & Me.職位 & "*'"

End If

End If

If Me.姓名 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 姓名 like '*" & Me.姓名 & "*'"

Else

filter_text = "姓名 like '*" & Me.姓名 & "*'"

End If

End If

If Me.銷售日期1 <> "" And Me.銷售日期2 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 銷售日期 between #" & Me.銷售日期1 & "# and #" & Me.銷售日期2 & "#"

Else

filter_text = "銷售日期 between #" & Me.銷售日期1 & "# and #" & Me.銷售日期2 & "#"

End If

End If

If Me.銷售額1 <> "" And Me.銷售額2 <> "" Then

If filter_text <> "" Then

filter_text = filter_text & " and 銷售額 >= " & Me.銷售額1 & " and 銷售額<=" & Me.銷售額2

Else

filter_text = "銷售額 >= " & Me.銷售額1 & " and 銷售額<=" & Me.銷售額2

End If

End If

'——————————篩選子窗體

If filter_text <> "" Then

Me.數(shù)據(jù)表子窗體.Form.Filter = filter_text

Me.數(shù)據(jù)表子窗體.Form.FilterOn = True

Else

Me.數(shù)據(jù)表子窗體.Form.FilterOn = False

End If

End Sub

Private Sub Command清空_Click()

員工編號(hào).Value = ""

姓名.Value = ""

部門.Value = ""

職位.Value = ""

銷售日期1.Value = ""

銷售日期2.Value = ""

銷售額1.Value = ""

銷售額2.Value = ""

End Sub

Private Sub Command全部_Click()

Me.數(shù)據(jù)表子窗體.Form.FilterOn = False

End Sub

拓展知識(shí):

原創(chuàng)文章,作者:九賢生活小編,如若轉(zhuǎn)載,請(qǐng)注明出處:http://xiesong.cn/37974.html

爱色欧美| 国产日韩欧美视频在线观看| 欧美综合之| 欧美色欲网| 色www性张柏芝国产| 欧av一区| 一级毛片成人免费视频| 日本h在线| 一级黄片免费激情| 成人免费视频一区二区三区| 色天堂成人AV电影| a亚洲成人女子| 亚欧在线视频| 国产精品伦视频| 色图 日韩 在线| 4hu影视| 精品久久第一区亚洲| 亚洲热妇无码Av在线播放| 黄色一级免费录像片| 日本免费| gay一区二区三区| 日本久久国产精品| 色欲AV无码精品一区二区久久| 欧日韩无码免费| 欧美国产日本在线观看| 亚洲精品丝袜久久久| av另类| 日韩有码试频| 在线精品福利| 精品精品视频| 永久免费AV站| 亚洲激情综合一区| 在线观看亚洲| 97激情网址| 国产精品美女久久久久久久网站| 亚洲国产qv| 日韩色网| 东京热下载aa| 91视频日本| 噜噜色天天干| 亚洲综合激情久久久久|