Results 1 to 3 of 3
  1. #1
    Toolman is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    2

    Automatically Lock Fields

    I would like to be able to lock specific fields once a certain lookup status has been selected. It's an employee database and employees of a certain type should not have certain info entered. What would be the best way to do this?

    Thanks.

  2. #2
    Toolman is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    2
    edit:
    what I want to do specifically is force two fields (which are lookup tables) to return "n/a" values (included in the tables) if a specific value is chosen from a first lookup/dropbox. My best attempt so far (in the Table validation rule):

    IIf([membership type]= "RAC",[residency]="3", [residency]= "1" OR "2")

    I receive an " Expression incorrectly typed/ too long" error from this

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    do you have criteria like thise for all your residency types? for example, you have type RAC = residency 3. is there a 1-1 relationship between membership types and residencies?

    If so, you can remove residency from the data entry process and replace it with a query:
    UPDATE mytable
    SET residency = "3"
    WHERE [membership type] = "RAC"
    ...and then so one for each of your membership types.

    on a sidenote, try to avoid using any spaces or special characters in your table/field/query names. It's just bad practice and can lead to headaches.

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

Similar Threads

  1. Lock Field based on other field value
    By diane802 in forum Access
    Replies: 5
    Last Post: 01-14-2010, 10:40 AM
  2. Replies: 0
    Last Post: 03-08-2009, 05:12 PM
  3. Replies: 0
    Last Post: 03-26-2007, 12:24 AM
  4. File sharing lock count exceeded
    By bullwinkle55423 in forum Access
    Replies: 0
    Last Post: 03-22-2007, 11:58 AM
  5. Can I lock out fields in a form by keying off...
    By swampdonkey in forum Access
    Replies: 2
    Last Post: 09-07-2006, 07:16 AM

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