|
- Option Compare Database
- Option Explicit
- '表
- Private Sub Command0_Click()
- Dim tbl As TableDef
- Dim strName As String
- For Each tbl In CurrentDb.TableDefs
- If Left$(tbl.Name, 4) <> "Msys" And Left$(tbl.Name, 1) <> "~" Then
- strName = strName & tbl.Name & Chr(13)
- End If
- Next
- MsgBox strName
- End Sub
- '窗体
- Private Sub Command1_Click()
- Dim obj As AccessObject, dbs As Object
- Set dbs = Application.CurrentProject
- For Each obj In dbs.AllForms
- MsgBox obj.Name
- Next obj
- End Sub
- '报表
- Private Sub Command2_Click()
- Dim obj As AccessObject, dbs As Object
- Set dbs = Application.CurrentProject
- For Each obj In dbs.AllReports
- MsgBox obj.Name
- Next obj
- End Sub
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|