Results 1 to 2 of 2
  1. #1
    rato999 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    1

    Question View Macro Result in subform

    Hi,
    I have created a macro name "MonthwiseRep" to view select query result in pivottable view which works fine when I run the macro.
    But problem occurs,
    if I wish to populate subform on a click of a button that I have on the main form with the same macro results as "MonthwiseRep" in pivottable view.

    I tried the following code for click event of the command button but it didn't work



    Me!Child21.SetFocus
    DoCmd.SetWarnings False
    Me.Child21.SourceObject = MonthwiseRep
    DoCmd.SetWarnings True
    Me.Child21.Requery


    Thank you for your time and help in anticipation.
    Cheers !!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's a link you may find useful: http://www.mvps.org/access/forms/frm0031.htm

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

Similar Threads

  1. Replies: 0
    Last Post: 01-12-2011, 12:43 PM
  2. Replies: 1
    Last Post: 10-24-2010, 11:32 AM
  3. Subform, Totals, in Datasheet view
    By eww in forum Programming
    Replies: 1
    Last Post: 09-27-2010, 10:22 AM
  4. Replies: 9
    Last Post: 09-25-2010, 10:14 AM
  5. Replies: 4
    Last Post: 01-11-2010, 11:41 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