欧美第十页,成人网成人A片,宾馆内激干人妻,偷偷内射,一区二区另类TS

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

前沿拓展:

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

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

數(shù)據(jù)庫,顧名思義:數(shù)據(jù)的倉庫。
當(dāng)使用者需要保存的數(shù)據(jù)量不是很大時(shí),我們可以直接將數(shù)據(jù)寫到編輯完全可視化,且內(nèi)置強(qiáng)大的Office編程環(huán)境VBA,無需第三方編程軟件,即可迅速開發(fā)桌面數(shù)據(jù)庫系統(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://m.cxzzxj.cn/37974.html

中文乱字码在线观看| 国产自慰喷水| 久久99精品久久久久久青春| AV无码小缝喷白浆在线观| 亚色中文av| 日韩国精品一区二区| 人人操丨人人摸| 欧美二区视频| 精品自拍视频在线入口| 97国产看片免费人成视频| 精品人妻少妇无码视频| 另类在线无码| 综合狠狠| 天天摸夜夜操狠狠操| 色五月丁香综合久久| 不卡的av一区| 一区二区三区在线观看欧美| 欧美zc0o人与善交| 三级片黄色片网址| 亚洲国产成人久久精品APP| 少妇高潮-区二区三区99| 国产在线精品一品二区| 18禁止看的免费污网站| 亚州成人毛片| 人人狠狠综合久久亚洲| 亚洲综合在现| 水蜜桃4小蜜桃4| 丁香影视毛片大全| 精品猛男猛女一区| 国产l精品国产亚洲区久久| 国产一区二区三区不卡免费观看 | 七月婷婷久久| 17c 国产精品| 亚洲色图校园春色| 国产精品欧美一区二区三区免费不卡 | 久久精品爱看无码免费视频| 区二区三区不卡不卡视频| 九九免费三区| 99re这里是国产精品首页| 六月婷婷色视频| 国产亚洲精品字幕在线观看|