Results 1 to 3 of 3
  1. #1
    euphonium01 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    40

    Still Having Problems with Macro!

    I have a Where Condition in a OpenReport Macro, [Serial #]=[Forms]![BBIS Extended Subform]![Serial #]

    The above opens the correct 'Serial #' record when I have the 'BBIS Extended Subform' open on its own, however, when I open the Main form that contains the subform I get a box asking me to Enter Parameter Value?



    I tried the following: [Serial #]= [BBIS Extended Subform.Form![Serial #] this opened the Report but, the Report contained no data at all, let alone the correct 'Serial #'

    I've tried various suggestions from helpers but nothing seems to work, except when the subform is open standalone it works perfect, if I had hair I'd be pulling it out!!!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,526
    The macro cant interpret it correctly...if you use code it would look like
    "[Serial #]=' " & [Forms]![BBIS Extended Subform]![Serial #] & " ' "

    OR
    build a param query that has : [Forms]![BBIS Extended Subform]![Serial #] in the critera under SERIAL field.
    then just open the query in the macro.

  3. #3
    euphonium01 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    40
    Hi ranman256. You nailed it, spot on, the parameter query works brilliantly and as a query I can add a few other useful bits into it. I knew immediately I read your answer that it would work and was able to create the query no problem, I know what to do but it's having that foresight (that experts like you have) where I fall down. Thank you so much for your help

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

Similar Threads

  1. Replies: 1
    Last Post: 01-21-2015, 02:02 PM
  2. Replies: 1
    Last Post: 01-13-2015, 01:33 PM
  3. Access Web Services Macro Problems (SharePoint 2010)
    By FelisMajor in forum SharePoint
    Replies: 0
    Last Post: 08-14-2014, 08:43 AM
  4. Replies: 0
    Last Post: 01-12-2011, 12:43 PM
  5. problems with a printing macro
    By Grooz13 in forum Access
    Replies: 1
    Last Post: 08-09-2010, 11:53 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