Access VBADiscuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
What do you mean by "block" it? Are you talking about being in a FORM and not allowing records to be edited? In design view, set these three form properties to FALSE:
Allow Edits
Allow Deletions
Allow Additions
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
no, that way you'll block the form but not the table from receiving records, what I want to do is block a table, doesn't matter if it is by form, direct in the table or by another application accessing to the database.
If you set security on the database and set a password
TOOLS > SECURITY > SET DATABASE PASSWORD
Then anyone opening and/or linking into the database will not be able to unless they know the password. You can store the back end (data tables and queries) in a password-protected MDB and give the user an unprotected front end (the forms and reports), and convert that MDB into an MDE (so they cannot edit the VBA code).
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
ok, sorry if I confused you guys, I'll explain exactly what I want to do
2 users acccessing the same database
there is a table that has counters
when one user get a counter he'll update it to counter+1, but in this time I don't want the other user to access that table so it'll not be possible for them to receive the same counter.