Results 1 to 3 of 3
  1. #1
    srivatsan is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2019
    Posts
    1

    Making attachment mandatory without generating VB debugs

    Hi,


    Can someone help me how to make attachments mandatory in MS Access form. when i make attachment mandatory in table field it creates VB debug in form if the users bypass without attachments to go to the next record.
    I prefer to control fields at form level as the end users have no access to the tables and queries. they can only use options through switchboard.
    I am using MS Access 2013 version. I'm not an expert in VB. So, many options that used to be in 2000-2003 version are no longer available in the latest versions.
    Thanks in advance for your support.
    Good regards
    Srivatsan

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,891
    Most experienced developers recommend against embedding objects in table as this adds complications (as you are experiencing) and uses Access file size limit. Alternative is a text field that saves file path string.

    Otherwise, use form BeforeUpdate event to validate data. However, I am striking out on code that can verify content of control bound to attachment field. It is possible to verify content of field with DLookup() but that would require first committing record to table which hasn't yet happened.
    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
    rkeifer is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2019
    Location
    Mays Landing, NJ
    Posts
    3
    What is the error number and description you receive.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-13-2014, 05:48 PM
  2. Replies: 1
    Last Post: 09-04-2014, 11:10 AM
  3. Replies: 1
    Last Post: 11-04-2011, 06:53 AM
  4. Query for non mandatory fields
    By pratim09 in forum Queries
    Replies: 2
    Last Post: 09-01-2011, 01:33 PM
  5. Replies: 2
    Last Post: 04-30-2010, 09:43 AM

Tags for this Thread

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