|
- Private Sub 单选_Click()
- On Error GoTo 单选_Click_Error
- DoCmd.OpenForm "窗体1", acDesign, , , , acHidden
- Forms("窗体1").Controls("项目列表").MultiSelect = 0
- DoCmd.OpenForm "窗体1"
- On Error GoTo 0
- Exit Sub
- 单选_Click_Error:
- MsgBox "Error " & Err.Number & " (" & Err.Description & ")"
- End Sub
- Private Sub 多选_Click()
- On Error GoTo 多选_Click_Error
- DoCmd.OpenForm "窗体1", acDesign, , , , acHidden
- Forms("窗体1").Controls("项目列表").MultiSelect = 1
- DoCmd.OpenForm "窗体1"
- On Error GoTo 0
- Exit Sub
- 多选_Click_Error:
- MsgBox "Error " & Err.Number & " (" & Err.Description & ")"
- End Sub
复制代码 |
|