Results 1 to 2 of 2
  1. #1
    OKCERTIFICATION is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2014
    Location
    UK
    Posts
    1

    Question Using Macros within a form/subform to set values between master and child forms- Help

    Hi
    I am new to this forum and not sure if this is a form or macro issue (both). Having finally discovered the solution to SetValue in 2010 (without using unsafe command) - which not very commonly explained but simple. Use Set Property and Value with expression from standard list of options. I now have a problem moving focus of macro.

    I am using Macros rather than code as not sufficiently able with code but fully ok with macros.

    Putting it simply

    I have a a subform (timesheet) within a main form (job) in one to many configuration

    In the detailed records of the subform I capture time and values.

    On creating a detail record I capture detail from other tables and pass the Latest Data from detail record updated on sub form to update the master form.
    On opening the following detail record I capture the latest data from Master and place that in fields storing previous data on the detailed record.

    (this is so that the detailed record holds all the data I need from the current record and the previous detail record for calculating time durations, etc).



    Problem from the sub-form I can set property / value of calculated fields in teh subform. When I try to get the macro to then set property of a control (field in the main form) the control name is not recognised. I have tried numerous variants but cannot seem to find a way to get the marcro to move to the current record in the main form (which is the one to the many and storing last record details).

    Anyone have any ideas. I'm pulling my hair out. Guess it is something to do with moving the focus but never had the issue before. The forms and subforms were created buy the subform wizard and use the relationships in the underlying tables to keep referential integrity and display the correct records in teh sub form.

    Thanks for idea.

    OKC

  2. #2
    AlSwis is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Location
    Allen Park, MI
    Posts
    1
    Try using a Goto Control comand to move the focus from the a field in the subform to a field in the main form before the set property.

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

Similar Threads

  1. Master/Child Link between Forms/Subforms
    By Stephanie53 in forum Forms
    Replies: 2
    Last Post: 04-02-2013, 08:14 PM
  2. Replies: 5
    Last Post: 03-30-2013, 12:56 PM
  3. Replies: 3
    Last Post: 12-12-2012, 01:13 AM
  4. Replies: 1
    Last Post: 01-04-2011, 05:04 AM
  5. Replies: 2
    Last Post: 06-14-2010, 03:25 PM

Tags for this Thread

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