但結果出現問題,與事實不符,我找不到錯誤在哪里
==========
Option Compare Database
Private Sub list0_AfterUpdate()
On Error GoTo Exit_Err
Dim Ctl As Control
Dim I As Integer
Dim s As String
Set Ctl = Me!List0
For I = 0 To Ctl.ListCount - 1
If Ctl.Selected(I) Then
s = s & "#" & Ctl.Column(0, I) & "#" & ","
End If
Next I
Me.data.Form.Filter = "[date] in (" & s & ")"
Me.data.Form.FilterOn = True
Exit_Err:
Exit Sub
End Sub