Sub TestDelRela() Dim i As Long Dim x As Long Dim strRela As String '关系的名称 Dim db As DAO.Database Set db = CurrentDb i = db.Relations.Count For x = 1 To i strRela = db.Relations(i - 1).Name '关系的名称 MsgBox "第" & i & "个关系的名称为:" & strRela db.Relations.Delete strRela '删除这个关系 Next x End Sub |
|站长邮箱|小黑屋|手机版|Office中国/Access中国
( 粤ICP备10043721号-1 )
GMT+8, 2025-4-2 12:57 , Processed in 0.258826 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.