Results 1 to 2 of 2
  1. #1
    dcdimon's Avatar
    dcdimon is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Location
    Bradenton, FL
    Posts
    71

    Creating a record when VBA changes contents of bound control


    I have a control that is used to show whether the piece of equipment that is associated with the form is UP or DOWN. The control is bound to a field and has a default value from a DLookup expression. There's a button that can be selected to change the status (UP to DOWN, etc). However, when the entry is changed a new record is not created unless another control on the page is selected or the user clicks on the form somewhere.

    99.9% of the time users will be filling in other controls on the form. However, there's a possibility that someone could change from UP to DOWN and navigate away. What I want to happen is when the status is changed a record gets created at that point. That will fire off some other vba I have that's tracking other data.

    I'm running off a SQL server backend with an Access front end.

    Any ideas?

    Thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    From the sound of it, you need to move the code to create a new record to the button from wherever it is now.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 24
    Last Post: 07-23-2014, 11:36 AM
  2. Replies: 5
    Last Post: 10-11-2013, 04:33 PM
  3. Form bound control display
    By Daryl2106 in forum Access
    Replies: 5
    Last Post: 12-11-2012, 08:56 AM
  4. Date Picker Not Updating Bound Control
    By DanKoz in forum Forms
    Replies: 5
    Last Post: 08-18-2011, 07:07 AM
  5. Replies: 2
    Last Post: 07-30-2009, 08:02 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