changkhoonline77 > 30-07-13, 10:35 AM
stone18k > 30-07-13, 10:38 AM
changkhoonline77 > 30-07-13, 04:57 PM
(30-07-13, 10:38 AM)stone18k Đã viết: Mình đang dùng Access 2010. nên những thứ bạn nói mình hok bít ^^. bạn hướng dẩn mình trên 2010 được không bạn? cám ơn bạn nhiều
![[Hình: 1_zps53fae9be.png]](http://i834.photobucket.com/albums/zz262/changkhoonline77/1_zps53fae9be.png)
![[Hình: 2_zps25dfec3c.png]](http://i834.photobucket.com/albums/zz262/changkhoonline77/2_zps25dfec3c.png)
trungn077 > 30-07-13, 11:23 PM
DoCmd.ShowToolbar "Ribbon", acToolbarNoDoCmd.ShowToolbar "Ribbon", acToolbarYesSub hideTable(H As Boolean)
On Error Resume Next
Dim db As Database
Dim N As Byte
Dim I As Byte
Set db = DBEngine.Workspaces(0).Databases(0)
N = db.TableDefs.Count
'N = DB.QueryDefs.Count
'N = Forms.Count
'N = Reports.Count
For I = 1 To N - 1
Application.SetHiddenAttribute acTable, db.TableDefs(I).Name, H ' will hide the table "MyTable"
'Application.SetHiddenAttribute acQuery, DB.QueryDefs(i).Name, H
'Application.SetHiddenAttribute acForm, Forms(i).Name, H
'Application.SetHiddenAttribute acReport, Reports(i).Name, H
Next
End Sub'Ẩn
hideTable True
hideQuery True
HideForms
HideReports
'Hiện
hideTable False
hideQuery False
UnHideForms
UnHideReports