2016-11-28 6 views

答えて

0

あなたから使用したい場合は、このようにそれを行うことができます:あなたはVBAを使用したい場合、あなたはこのようにそれを行うことができます

FIELD: YourDateField 
CRITERIA: Between FORMS![YourFormName]!cboStartDate and Forms![YourFormName]!cboEndDate 

Dim strWhere As String 
Dim conJetDate ="\#mm\/dd\/yyyy\#" 
If IsNull(Me.cboStartDate) Or IsNull(Me.cboEndDate) Then 
MsgBox "Both dates needed" 
Else 
strWhere = "[MyDate] Between " & _ 
Format(Me.cboStartDate, conJetDate) & " And " & _ 
Format(Me.cboEndDate, conJetDate) 
Me.Filter = strWhere 
Me.FilterOn = True 
End If 
関連する問題