Wrox Programmer Forums
|
Access VBA Discuss 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
 
Old June 4th, 2004, 06:40 AM
Authorized User
 
Join Date: May 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cr0vaX
Default Block Table

Is is possible to block a table for not being updated?
with VBA code?

 
Old June 4th, 2004, 06:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

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
 
Old June 9th, 2004, 08:28 AM
Authorized User
 
Join Date: May 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cr0vaX
Default

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.

Thank you anyway :)
 
Old June 9th, 2004, 12:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

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
 
Old June 9th, 2004, 08:56 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Define blocking table. Are you taking security or are you talking record level/table level locks.

Block from who? when?
Security in Access can be a pain.



Sal
 
Old June 11th, 2004, 05:01 AM
Authorized User
 
Join Date: May 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cr0vaX
Default

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.

Now tell me if is it possible to block the table.






Similar Threads
Thread Thread Starter Forum Replies Last Post
block my microsoft MunishBhatia ASP.NET 2.0 Professional 0 July 9th, 2007 08:25 AM
Code Render Block to hide table rdove84 ASP.NET 1.0 and 1.1 Basics 5 February 16th, 2007 05:57 PM
How to block downloading qazi_nomi Classic ASP Basics 2 July 25th, 2005 12:51 AM
New Kid on the Block Needs some help johnny1628 HTML Code Clinic 3 July 3rd, 2003 07:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.