Results 1 to 3 of 3
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Changing information in a different table

    I have a form that is bound to a table [tblEquipmenIssued]. However, I need to change information on a different table [tblEquipment]. I have several unbound fields that transfer their information when I click the command button. Because of the way I keep track of my inventory, I need to have a check box [Issued] that needs to be checked in the [tblEquipment] table. I was wondering if there was a way to make a code to do that.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    VBA can run an action SQL, like:

    CurrentDb.Execute "UPDATE tblEquipment SET fieldname = True WHERE ID=" & Me.EquipID

    The real challenge is figuring out what event(s) to put code into: button click, textbox AfterUpdate, form AfterUpdate, etc.
    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
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Thanks. Worked perfectly.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-08-2015, 11:01 AM
  2. Replies: 1
    Last Post: 04-07-2015, 01:02 PM
  3. Changing information display method in forms
    By mrbaggins in forum Forms
    Replies: 5
    Last Post: 10-21-2010, 06:00 AM
  4. Changing information orientation
    By gumberculies in forum Reports
    Replies: 1
    Last Post: 06-10-2010, 07:48 PM
  5. Replies: 0
    Last Post: 05-09-2009, 09:04 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