Results 1 to 3 of 3
  1. #1
    I'm a tomato is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    1

    Modify MS Access database form to prompt user if record is missing to create a new record.

    I've created a small client contact database that works fine. It has 3 tables -contact, organisation, activity.



    When I add a new activity, I want the form to search to check if the contact exists. If it doesn't exist, the user should be prompted to create the contact.

    You also need to provide a descriptor of what you did, so that I can modify it if necessary. Non VBA options are preferred if possible.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Requires code (macro or VBA). I use only VBA.

    One approach is to use a combobox to select contact. Set LimitToList to Yes then use NotInList event to allow creating new contact 'on-the-fly'. Review http://www.fontstuff.com/access/acctut20.htm
    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
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    When a new activity is entered, the first thing the user should select is the contact - usually a combobox. You can set this to restrict only valid entries, with a "new" button if the user wishes to create one on the fly, or you can have a NotInList event which will add the contact to the table.

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

Similar Threads

  1. Replies: 6
    Last Post: 04-23-2016, 04:10 PM
  2. Replies: 2
    Last Post: 11-15-2013, 09:58 AM
  3. Replies: 0
    Last Post: 08-23-2013, 05:46 PM
  4. create and last modify date & time for record
    By msasan1367 in forum Access
    Replies: 5
    Last Post: 04-04-2013, 01:54 AM
  5. Replies: 1
    Last Post: 02-01-2012, 11:27 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