User Profile

Collapse

Profile Sidebar

Collapse
HBCPH
HBCPH
Last Activity: Jan 31 '12, 07:57 PM
Joined: Dec 28 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • HBCPH
    started a topic Trying to use the NZ Function with #num! as a result

    Trying to use the NZ Function with #num! as a result

    I have a form with a calculated field (Business #1 DCR)see attachment. The field has a data Control Source of: =([N/IBus1]+[DepAmorBus1]+[IntExpBus1])/([ExistingDebtPym tsBus1]+[ProposedDebtSer viceBus1])with a Default Value of 0. Which works fine if there are numbers in the related fields, but produces #Num! if the related fields all have the default 0. I would like result to be blank or have a 0 as a result if the related fields contain the default...
    See more | Go to post
    Last edited by NeoPa; Jan 30 '12, 09:50 PM. Reason: Made pic viewable

  • I finally got it to run, it seems to have something to do with which event triggered the VBA. I moved it to "On Lod" and it ran fine. Thank You to everyone for trying to help.
    See more | Go to post

    Leave a comment:


  • I wish I knew the answer to that, as I mentioned if I run VBA to only check the box it works fine but if I try to add it to the VBA that sends the email it doesn't work. Separately they both will run. But I need them both to run if they meet the criteria.
    See more | Go to post

    Leave a comment:


  • VBA to change a field based on a if then statement

    I tried True and "Yes" and now have tried the -1 but I get the message "You can't assign a value to this object". If I run VBA to check the box by itself it works fine but not in combination.
    See more | Go to post
    Last edited by NeoPa; Dec 28 '11, 10:41 PM. Reason: Quote entirely unnecessary

    Leave a comment:


  • HBCPH
    started a topic VBA to change a field based on a if then statement

    VBA to change a field based on a if then statement

    I have a form that should a count of days exceed 25 a email should be sent out and then a box checked to acknowledge that it was sent out. I can get the first part but checking the box is causing me problems. Can anyone help?
    Code:
    Private Sub Form_Open(Cancel As Integer)
        If (Forms!frmRetailProductionLogOpenSplit!RegBDays > 25 And Forms!frmRetailProductionLogOpenSplit!RegBComplianceNotified = 0) Then
            DoCmd.SendObject acReport,
    ...
    See more | Go to post
    Last edited by Stewart Ross; Dec 28 '11, 07:18 PM. Reason: Added code tags
No activity results to display
Show More
Working...