اذهب الي المحتوي
أوفيسنا

اخفاء الجداول المرتبطه


إذهب إلى أفضل إجابة Solved by kanory,

الردود الموصى بها

السلام عليكم

بحثت وجدت اكواد تخفي الجداول المرتبطه ولكن ليس بشكل كلي
حيثُ تظهر من خلال اظهار الكائنات المخفية وكائنات النظام

فهل يوجد كود يمنع اظهارها

رابط هذا التعليق
شارك

  • أفضل إجابة

هل جربت هذا الكود ....

Private Sub ViewTablePage()
DoCmd.SelectObject acTable, , True
SendKeys "{F5}"
End Sub

Private Sub VisibleTable_Click()
Dim db As Database
Dim tdf As TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
If Left(tdf.Name, 4) <> "msys" And tdf.Attributes <> 1073741824 Then
tdf.Attributes = tdf.Attributes + dbHiddenObject
End If
If tdf.Attributes = 1073741824 Then tdf.Attributes = 1
Next
db.Close
Set tdf = Nothing
Set db = Nothing
Call ViewTablePage
End Sub

 

  • Like 4
  • Thanks 1
رابط هذا التعليق
شارك

تفضل ....

Dim dbs As Database, tdf As TableDef
    
    Set dbs = CurrentDb
    For Each tdf In dbs.TableDefs
    If Left(tdf.Name, 4) <> "msys" _
    And tdf.Attributes = 1 Then
            tdf.Attributes = tdf.Attributes - dbHiddenObject
    End If
    If tdf.Attributes = 1073741825 Then tdf.Attributes = 0
    Next tdf
    Set dbs = Nothing
Call ViewTablePage

 

  • Like 4
  • Thanks 1
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information