用eof和bof事件
Dim BiaoMing As String '定义你要检测的表
Data1.RecordSource = "select * from" & BiaoMing
If Data1.BOFAction Then
msgbox "没有表"& BiaoMing
end if