Results 1 to 3 of 3
  1. #1
    jzacharias is offline Advanced Beginner
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Posts
    31

    populating value of one field to another

    I am trying automatically populate a field in a subform with the value from the main form. I am trying to track tickets that were written for each month. Each officer works either days,afternoons or midnights on either a yellow shift, red shift or green shift. I don't want to have to manually put in lets say afternoon, red for each record entry. My first attempt worked, but when I changed the shift on the officer table, all the fields in the prior records changed. I need them to remain with the month they were entered. If that makes sense

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    based on your post I am going to guess that your subform is a continuous form. If so, the issue is this - that subform is an object, and that textbox is a control which has one name. But you have multiple records in that subform. The code can't know which record - so it affects all. This is a fairly common learning experience for developers.

    in general - rather than use a trigger event in the main form, instead use a trigger event in the subform. Presuming the user must be entering something into a record in the subform - use that as the trigger point because then you are in a single record and the code will affect only that record.

    hope this helps.

  3. #3
    jzacharias is offline Advanced Beginner
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Posts
    31
    I don't know what event triggers to use.

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

Similar Threads

  1. Auto Populating a field in a table
    By softspoken in forum Access
    Replies: 11
    Last Post: 04-05-2010, 02:52 PM
  2. Replies: 17
    Last Post: 03-29-2010, 10:55 AM
  3. Populating a "Text" field in a Report
    By two_smooth in forum Reports
    Replies: 20
    Last Post: 02-19-2010, 11:25 AM
  4. Populating Fields
    By deiniolj in forum Forms
    Replies: 21
    Last Post: 12-08-2009, 10:51 AM
  5. Self Populating Fields
    By kellyd in forum Access
    Replies: 0
    Last Post: 09-17-2009, 10:20 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