Results 1 to 2 of 2
  1. #1
    accessnewb is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    New York, NY
    Posts
    116

    Edit table only via forms

    Hi all,

    I have this form and onClick of the button a VB code is executed. The code contains an insert query to insert values in a table. But the user can also add values directly by opening the table (I've hidden the table, but still, its easy to unhide it and add values).

    Is there any way to edit table only via forms? Like, if the user tries to add values directly in the table, he should get an error message...something like "U can't add values directly! Enter via forms" or something like that...

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I think the short answer is no, you can't. There are a bunch of ways to limit access to your tables but in essence, if someone knows their way around access they can get around the things blocking them.

    For instance it's possible to have no linked tables in your database at all but it makes retrieval, updating, and adding records to your database a bit of a process if you're not comfortable with the VB side of Access.

    Another option is to uninstall access on the machine in question and only install the run time components. This is really the only method I have found that can limit a person's ability to destroy a database.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 06-16-2011, 01:35 PM
  2. Forms Locked in Edit Only
    By cassidym in forum Forms
    Replies: 3
    Last Post: 09-14-2010, 07:40 AM
  3. Replies: 1
    Last Post: 08-13-2010, 10:10 PM
  4. Creating "Edit Record" link in table column
    By joshearl in forum Forms
    Replies: 1
    Last Post: 12-25-2009, 11:17 AM
  5. Replies: 1
    Last Post: 06-01-2009, 01:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums