这是论坛上的定义打开窗体函数 OpenForms ,使得点图片时就可以打开某一窗体,
Function OpenForms(strFormName As String) As Integer
On Error GoTo Err_OpenForms
DoCmd.OpenForm strFormName
Exit_OpenForms:
Exit Function
Err_OpenForms:
MsgBox Err.Description
Resume Exit_OpenForms
End Function
Function Openreport(strreportName As String) As Integer
On Error GoTo Err_Openreport
DoCmd.Openreport strreportName
Exit_Openreport:
Exit Function
Err_Openreport:
MsgBox Err.Description
Resume Exit_Openreport
End Function