if CurrentTable.Name = "表A" then
forms("A窗口).Open
Elseif CurrentTable.Name = "表B" then
forms("B窗口).Open
……
end if