Results 1 to 2 of 2
  1. #1
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    192

    Update Command Button in Main Form

    I do have a MainForm and two subforms, SubForm1 & SubForm2. All the forms are having a linking field Lot_ID.




    The SubForm1’s & SubForm2’s underlying tables are not related.


    The SubForm1 has a date field named DateOfShifting & the SubForm2 has a date field named ShiftingDate which can have one or more records.


    I want to create an Update Command button on the Main Form. On clicking the button, the SubForm2’s date field should populate with the date entered in the SubForm1

    Can it be done? If so please let me know the code. Even though date can be manually entered, I want this to avoid entry mistakes.

    Alex

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Can it be done? Yes.

    But... Can you explain further about what the main form and subfroms are? Usually a main form's record has MANY records from its subform(s) (if that makes sense), so how do you pick which subform 1 date to apply to subform 2?

    Can you post a screenshot of your table relation ships and your forms?

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

Similar Threads

  1. Replies: 3
    Last Post: 09-08-2017, 07:18 PM
  2. Replies: 2
    Last Post: 04-02-2015, 08:04 PM
  3. Replies: 11
    Last Post: 02-22-2015, 01:25 PM
  4. Replies: 3
    Last Post: 12-13-2012, 01:51 PM
  5. Replies: 5
    Last Post: 02-08-2011, 11:17 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