Shift Key merupakan kunci utama untuk masuk ke database window Access. Kendatipun demikian, sesungguhnya pengaturan Shift Key ini tidak akan berpengaruh banyak kepada programmer ataupun user yang sudah mengetahui kuncinya atau tata cara mengaktifkan dan menonaktifkan Shift Key ini. Bahkan, file EXE tertentu yang sudah dicompile pun, dapat di decompile kembali oleh para programmer yang sudah mengetahui caranya. Kendatipun demikian, untuk kepentingan belajar, marilah kita bahas satu persatu pengaturan Shift Key ini.
Sebelum menjalankan fungsi-fungsi di bawah ini, pastikan setting startup untuk "Display Database Window" pada file tersebut harus sudah di Off kan. Harap dibackup dahulu file original yang Anda gunakan sebagai latihan, dikhawatirkan saat menjalankan beberapa fungsi dibawah ini terjadi error yang menyebabkan kerusakan pada file Anda. Sebelumnya harap ditambahkan DAO di References VBA nya.
1. DISABLE SHIFT KEY UNTUK FILE INTERNAL:
Public Function DisableShiftKeyInte
On Error GoTo ShiftError
Dim db As DAO.Database
Dim ShiftKey As DAO.Property
Set db = CurrentDb()
db.Properties(
GoTo nol
ShiftError:
Set ShiftKey = db.CreateProperty(
db.Properties.
nol:
db.Close
Set db = Nothing
End Function
2. DISABLE SHIFT KEY UNTUK FILE EXTERNAL:
Public Function DisableShiftKeyExte
'File MDB dibawah ini boleh diganti dengan MDE, ACCDB atau ACCDE.
'Misal: "C:\MyDB.MDB"
On Error GoTo ShiftError
Dim db As DAO.Database
Dim ShiftKey As DAO.Property
Set db = OpenDatabase(
db.Properties(
GoTo nol
ShiftError:
Set ShiftKey = db.CreateProperty(
db.Properties.
nol:
db.Close
Set db = Nothing
End Function
3. ENABLE SHIFT KEY UNTUK FILE INTERNAL:
On Error GoTo ShiftError
Dim db As DAO.Database
Dim ShiftKey As DAO.Property
Set db = CurrentDb()
db.Properties(
GoTo nol
ShiftError:
Set ShiftKey = db.CreateProperty(
db.Properties.
nol:
db.Close
Set db = Nothing
End Function
4. ENABLE SHIFT KEY UNTUK FILE EXTERNAL:
'File MDB dibawah ini boleh diganti dengan MDE, ACCDB atau ACCDE.
'LokasiFileLengkap adalah lokasi file beriut dengan namanya
'Misal: "C:\MyDB.MDB"
On Error GoTo ShiftError
Dim db As DAO.Database
Dim ShiftKey As DAO.Property
Set db = OpenDatabase(
db.Properties(
GoTo nol
ShiftError:
Set ShiftKey = db.CreateProperty(
db.Properties.
nol:
db.Close
Set db = Nothing
End Function
TATA CARA PENGGUNAAN:
Cukup menjalankan salah satu dari fungsi-fungsi diatas di immediate window VBA, misal:
?DisableShiftKeyInt
Lalu tekan Enter.
?DisableShiftKeyExt
Lalu tekan Enter.
?EnableShiftKeyInte
Lalu tekan Enter.
?EnableShiftKeyExte
Lalu tekan Enter.
Sofyan Efendi
http://imopi.wordpress.com | http://trendmuslim.com
----- Original Message -----From: tio.adjie@ptssb.co.idSent: Monday, October 22, 2012 10:26 AMSubject: RE: [belajar-access] Security ms.access 2007
Mas Sumiyanto, bagaimana cara mematikan tombol Shift waktu membuka Database versi 2007 ? Apakah dengan cara-cara di bawah bisa mematikan tombol Shift tsb. ? Kalau iya, apakah cara-cara di bawah ini bisa di pakai juga untuk versi 2010 ?
Thanks and regards,
Tio
sumiyanto surabaya <sumiyanto@live.com>
Sent by: belajar-access@yahoogroups.com10/22/2012 07:41 AM
Please respond to belajar-access
To: "belajar-access@yahoogroups.com" <belajar-access@yahoogroups.com>
cc:
Subject: RE: [belajar-access] Security ms.access 2007
Jika aplikasi masih masih terus didevelop, sementara bisa dilakukan sbb:
1. Nge lock db agar client tdk bs buka2 table, hidden table kemudian non aktifkan navigation pane, non aktifkan show hidden object
2. memberikan password pada vba, ctrl+G>tools>nama project properties> PILIH tab protection>lock project for viewing dan berikan password. atau sekalian di convert ke accde caranya http://cakyanto.wordpress.com/2011/11/29/membuat-access-developer-extensions/
salam,
sumiyanto surabaya
> To: belajar-access@yahoogroups.com
> From: mujiariyanti@yahoo.com
> Date: Thu, 18 Oct 2012 13:54:59 +0000
> Subject: [belajar-access] Security ms.access 2007
>
> Dear. Suhu dan rekan
> Kalau mau nge lock db agar client tdk bs buka2 table n vba gimana ya?
> Minta bantu pencerahanya, ada settingan tambhn atau syntax tambahan?
> Terima kasih
> Salamm free-debug,he
>
> Sent from my BlackBerry®
> powered by Sinyal Kuat INDOSAT
>
> ------------------------------------
>
> SPAM IS PROHIBITEDYahoo! Groups Links
>
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/belajar-access/
>
> <*> Your email settings:
> Individual Email | Traditional
>
> <*> To change settings online go to:
> http://groups.yahoo.com/group/belajar-access/join
> (Yahoo! ID required)
>
> <*> To change settings via email:
> belajar-access-digest@yahoogroups.com
> belajar-access-fullfeatured@yahoogroups.com
>
> <*> To unsubscribe from this group, send an email to:
> belajar-access-unsubscribe@yahoogroups.com
>
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
Reply via web post | Reply to sender | Reply to group | Start a New Topic | Messages in this topic (4) |
No comments:
Post a Comment