Results 1 to 3 of 3
  1. #1
    noobie1 is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2023
    Posts
    1

    How do i lock (?) a field ?

    Click image for larger version. 
<br /><script async src=
    Name: msft access lending library.PNG  Views: 25  Size: 14.5 KB  ID: 51092" class="thumbnail" style="float:CONFIG" />


    I am currently trying to build a simple lending library using a barcode scanner to scan 1. member id barcode, 2. radio barcode, 3. and date/time stamp.
    I can't figure out how to make the selection go down to the next blank cell after scanning the first two items and not replace the date/time. Is it possible to lock the field so no entry is possible after the time/date has been recorded ? Also is there anyone who can help me build this lending library ? TIA.



  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Can't do this in table or query. Build a form where you can have code and properties you can manage.

    Have you seen the MSAccess Lending Library sample database template? https://support.microsoft.com/en-us/...8-1afcfc91a9cb
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in the FORM:

    Code:
    sub form_Current()
    dim bLock as boolean
    
    bLock = not isnull(txtDate)
    
    txtFld1.locked = bLock
    txtFld2.locked = bLock
    
    end sub

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

Similar Threads

  1. Replies: 5
    Last Post: 11-13-2017, 02:09 PM
  2. Lock field with VBA
    By mpaulbattle in forum Security
    Replies: 2
    Last Post: 12-29-2016, 08:35 AM
  3. Replies: 1
    Last Post: 05-31-2016, 07:29 AM
  4. Lock a field on a form
    By pbouk in forum Forms
    Replies: 3
    Last Post: 03-25-2013, 10:45 PM
  5. Replies: 3
    Last Post: 03-13-2012, 12:02 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