Results 1 to 2 of 2
  1. #1
    evictme is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Jun 2011
    Posts
    7

    Need Help! Code for After Update Event Procedure

    Hello All,



    Im running MS Access 2003. I have a database with many tables the ones in question are Clients and Employees.

    My question is in regards to a form that I am using to maintain the Client information. I have set up relationships between the Clients and Employees, eg Clients.WorkerName = Employees.EmployeeName etc.


    What I need is this, I have the selection of the worker for a client as a drop down option that will provide a list of the names of a worker as a combo box from the employee table. I have a field right next to that in which we manually populate the employeeID in order for other dbase features to function correctly. I want to be able to auto-populate the employeeID once a worker name is selected. Is there anyway i can do this with my current dbase structure? I want to be able to make this part of the after update event for that field...is it possible? would you provide examples of code?

    Any piece of help would be greatly appreciated!

  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
    Is this what you're after?

    http://www.baldyweb.com/Autofill.htm

    Your structure seems reversed. Normally the ID field would link the tables.
    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: 4
    Last Post: 05-18-2011, 03:24 PM
  2. How to put code in form event.
    By rogdawg in forum Forms
    Replies: 4
    Last Post: 08-06-2010, 03:38 PM
  3. Before Update Event
    By randolphoralph in forum Programming
    Replies: 0
    Last Post: 06-15-2010, 09:26 AM
  4. On Click Event Procedure
    By MrDean in forum Forms
    Replies: 3
    Last Post: 10-07-2009, 07:16 AM
  5. Troubleshoot NotInList Event Procedure
    By skyrise in forum Programming
    Replies: 4
    Last Post: 02-23-2009, 06:06 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