Results 1 to 3 of 3
  1. #1
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209

    Enabled = False

    I have imported a spreadsheet with over 300 entries of orders that have been placed, I want the "Order" portion to be locked once I import it. I have the VB code set in place to when a new entry is logged in the database once the "Add Record" is hit it locks, but how do I lock the entries that were imported from my spreadsheet?



    I have a feeling a query could do this, but I am new to access and not sure how I would go about doing it.

    Any takers?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    "locks it" means exactly what's in the title of the thread, I'm guessing??

    if so, what you do is set "enabled = false" after checking "me.newrecord" on the CURRENT() event of the form.

  3. #3
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209
    I only want it to lock, or gray out the fields that have been populated. There are a few fields on the form, that will be populated as new information comes through, like a memo field and that type of thing. I only want it to lock the data that the 1st contact person would enter. But since I imported I don't know how to set it up to lock just those entries.

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

Similar Threads

  1. Form combo box not working with AllowEdits = False
    By jgelpi16 in forum Programming
    Replies: 3
    Last Post: 02-04-2011, 05:08 PM
  2. Yes/No True/False
    By DSTR3 in forum Access
    Replies: 5
    Last Post: 12-04-2010, 05:56 PM
  3. Replies: 4
    Last Post: 09-10-2009, 03:09 AM
  4. True or false
    By tleec in forum Queries
    Replies: 1
    Last Post: 02-01-2008, 10:41 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