Results 1 to 2 of 2
  1. #1
    iProRyan is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Dec 2011
    Location
    England, United Kingdom
    Posts
    44

    If subfrm = Empty then = 0 else total subfrom value

    Hi Guys

    This problem is doing my nut in now!!

    Basically I have a text box on my main form which is calculates a total of all 'Sub Total' fields displayed on the sub form, but if this is subform is empty which it will be to start with I want it to simply say "£0.00" I've tried so much IIFIsNull, other IIf.

    Someone must know how to fix this, any help is appreciated!

    Thanks in advance!



    Ryan

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I usually do calcs like that using DAO and variables. The first totals are run by a query joined to the form's data set. The final sum(s) of the TOTALS query are done in VBA behind the form and displayed in unbound control(s). An If Then Else statement can show a default value and change ForeColor properties in said control when a specific condition is met.

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

Similar Threads

  1. Search Box on subfrm
    By libraccess in forum Queries
    Replies: 1
    Last Post: 09-27-2013, 09:54 PM
  2. Set Focus to subfrm on Tabbed Page
    By libraccess in forum Forms
    Replies: 3
    Last Post: 06-30-2012, 07:44 AM
  3. Replies: 3
    Last Post: 03-25-2012, 12:40 AM
  4. Validate Subfrom Data
    By mcktigger in forum Forms
    Replies: 2
    Last Post: 09-08-2011, 09:50 AM
  5. Replies: 1
    Last Post: 08-06-2011, 10:45 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