判断当前表格名,如代码
If currentTable.Name = "表A" Then
Forms("窗口1").Show
ElseIf currentTable.Name = "表B" Then
End If