Skip to main content

Membuat Tabel Untuk Mengatur Menu

Nama tabel: tblMenus

Tabel tblMenus digunakan untuk menyimpan data pengaturan menu yang akan kita buat sendiri.
  1. Field Name = Id
    1. Data Type = AutoNumber
    2. Description = Nomor identitas form
    3. Field Properties - General Tab:
      1. Field Size = Long Integer
      2. Caption = Nomor Id
  2. Field Name = IdForm
    1. Data Type = Text
    2. Description = Nama form seperti yang tercantum pada Navigation pane
    3. Field Properties - General Tab:
      1. Field Size = 100
      2. Caption = Id Form
      3. Index=Yes(No Duplicates)
    4. Field Properties – Lookup Tab:
      1. Display Control= Combo Box
      2. Row Source type= Table/Query
      3. Row Source= SELECT Name FROM MsysObjects WHERE Left$([Name],1)<>"~" AND Type=-32768 ORDER BY Name;
      4. Bound Column=1
      5. Column Count=1
      6. Column Widths=2
      7. List Width=2
      8. Limit To List=Yes
  3. Field Name = NamaForm
    1. Data Type = Text
    2. Description = Nama form yang tertulis pada Caption dari form
    3. Field Properties - General Tab:
      1. Field Size = 100
      2. Caption = Nama Form Pada Menu
  4. Field Name = NamaIjin
    1. Data Type = Text
    2. Description = Ijin hak akses pengguna yang diperlukan untuk membuka form ini
    3. Field Properties - General Tab:
      1. Field Size = 100
      2. Caption = Nama Ijin Pada Admin Pengguna
  5. Field Name = Induk
    1. Data Type = Number
    2. Description = Menu induk, mengikuti Id
    3. Field Properties - General Tab:
      1. Field Size = Long Integer
      2. Caption = Menu Induk
      3. Default Value=0
    4. Field Properties – Lookup Tab:
      1. Display Control= Combo Box
      2. Row Source type= Table/Query
      3. Row Source= SELECT Id, NamaForm FROM tblMenus;
      4. Bound Column=1
      5. Column Count=2
      6. Column Widths=0";2"
      7. List Width=2
      8. Limit To List=Yes
  6. Field Name = NoUrut
    1. Data Type = Number
    2. Description = Urutan nama form yang akan dicantumkan pada menu/submenu
    3. Field Properties - General Tab:
      1. Field Size = Long Integer
      2. Caption = No Urut di Menu/Submenu
      3. Default Value=0
  7. Primary key : Id

Comments

Posting Terpopuler

Format Untuk Field Dengan Tipe Data Number dan Currency di MS Access

Normalisasi, Denormalisasi, dan Anomali Database

Mengenal Jenis dan Kegunaan Layout Pada Form di Access