Results 1 to 5 of 5
  1. #1
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141

    Result shows when printed but not in Report View

    I have a TextBox with :
    Code:
    =IIf(DCount("*","[QuryRepQtrBonus]")>0,DSum("[QtrBonus]","[QuryRepQtrBonus]"),0)
    In Report View - the box appears blank - UNLESS you click it.
    When Printed: the result shows in the box no problem

    I would like it to show in report view (even if there is a delay for calculation)

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Where did you put that code? put it on the form load event and see if that does it.

  3. #3
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141
    looks like It will work putting it into On Load - but how do you translate formula with quotes into vba
    I want
    Code:
    Me.RevAttain1.Controlsource = "DLookUp("[RevBonus]","[Tbl2_MgrBonus]","[BonusMo]=" & [TxtMo1] & "And [BonusYr]=" & [TxtYear] & "And [MgrID]=" & [TxtMgrID])"
    It hits the first quote and thinks it is the end of the expression. If I triple up the quotes it does not work
    Code:
    Me.RevAttain1.Controlsource  ="DLookUp("""[RevBonus]""","""[Tbl2_MgrBonus]""","""[BonusMo]=""" & [TxtMo1] & """And [BonusYr]=""" & [TxtYear] & """And [MgrID]=""" & [TxtMgrID])"

  4. #4
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141
    I am going to ask this in Programming section.

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    That's too complicated for me mate

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

Similar Threads

  1. Search box that shows result in Form
    By revvedmoto in forum Programming
    Replies: 16
    Last Post: 02-20-2014, 03:20 PM
  2. Replies: 2
    Last Post: 01-28-2014, 10:13 PM
  3. Replies: 2
    Last Post: 06-20-2012, 02:21 AM
  4. Replies: 1
    Last Post: 12-20-2011, 03:32 PM
  5. Totals in Datasheet View only shows COUNT
    By nypedestrian in forum Forms
    Replies: 6
    Last Post: 08-26-2011, 08:23 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