Select Case intProjType
Case 0 ' acNull
MsgBox "ProjectType is acNull"
Case 1 ' acADP
MsgBox "ProjectType is acADP"
Case 2 ' acMDB
MsgBox "ProjectType is acMDB"
Case Else
MsgBox "不能判断项目类型"
End Select
刚才有网友kobe看了王站的贴深受启发,但可能是他忘记本站的注册名后,所以无法进入,所以我转发他的体会,
Sub a()
Dim i
On Error Resume Next
i = CurrentData.AllViews.Count
If Err = 0 Then
MsgBox "ADP"
Else
MsgBox "MDB"
End If
End Sub