Results 1 to 6 of 6
  1. #1
    rdyson39 is offline Novice
    Windows 10 Access 2007
    Join Date
    Jan 2019
    Posts
    2

    Built-In Formula in Access Db not working


    I am trying to get the last column of a pre-formatted db to provide a total. I have tried unsuccessfully to correct the issue myself but after 1 month of nothing I'm coming for professional help. I need the Total of the donations received to show. There is a drop box where I can choose count or number and neither of these is what I want or need. Thank you in advance! Ruth
    Click image for larger version. 

Name:	2019-01-21.png 
Views:	21 
Size:	134.3 KB 
ID:	37047Click image for larger version. 

Name:	2019-01-21 (1).png 
Views:	21 
Size:	135.6 KB 
ID:	37048

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Are you trying to emulate a Split form with two subforms bound to the same dataset?

    So why can't Sum be used on Donations field? Why is this data seen as text and not number?

    Why use CCur() function instead of Format property to format data?


    I know there is Count function but what is Number?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Hi Ruth,

    Instead of doing the calculation in the subform's control try to move it to the subform's record source; if it is based on a table create a query and add your CCur(Nz(.... formula as a calculated field then bind the AmountRaised textbox to the calculated field. If still no luck please try to upload a stripped down version of your db so we could have a look.

    Cheers,
    Vlad

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Suggestions:

    Use only letters and numbers (exception is the underscore) for object names.
    Do not use spaces, punctuation or special characters in object names.
    Do not begin an object name with a number.
    Do not use Look up FIELDS, multi-Value fields or Calculated fields in tables.


    If the field "ID" is an Autonumber type, it should not be displayed on the form; it should be hidden.
    "ID" is a poor name - a better name would be "DonationID". I would use "DonationID_PK".

    "Name" and "Description" are reserved words in Access and shouldn't be used for object names.

  5. #5
    rdyson39 is offline Novice
    Windows 10 Access 2007
    Join Date
    Jan 2019
    Posts
    2

    Built In Formula

    This database was prebuilt. I am only trying to use it until we purchase a program which will meet all our needs. I don't know why Access built it the way it is. I'd change whatever is necessary. I'm only presenting what was already done. Your continued support is appreciated.

    Ruth

    Quote Originally Posted by rdyson39 View Post
    I am trying to get the last column of a pre-formatted db to provide a total. I have tried unsuccessfully to correct the issue myself but after 1 month of nothing I'm coming for professional help. I need the Total of the donations received to show. There is a drop box where I can choose count or number and neither of these is what I want or need. Thank you in advance! Ruth
    Click image for larger version. 

Name:	2019-01-21.png 
Views:	21 
Size:	134.3 KB 
ID:	37047Click image for larger version. 

Name:	2019-01-21 (1).png 
Views:	21 
Size:	135.6 KB 
ID:	37048

  6. #6
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    I empathize with your situation, but Access is not the culprit -- some one used the tools provided by Access - and built the database. If it doesn't provide the info it is/was suppose to provide, then there is a design issue. Access did not do the design.
    I don't know why Access built it the way it is.
    June has asked good questions that should be answered.

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

Similar Threads

  1. MOD formula not working correctly
    By Tascja in forum Access
    Replies: 2
    Last Post: 10-25-2017, 01:03 PM
  2. Replies: 19
    Last Post: 07-13-2015, 10:15 AM
  3. Replies: 41
    Last Post: 05-29-2015, 02:58 PM
  4. Auto sum formula not working
    By data808 in forum Access
    Replies: 8
    Last Post: 07-04-2014, 02:17 AM
  5. BMI calculation formula not working...
    By coolpal9 in forum Forms
    Replies: 2
    Last Post: 03-27-2012, 12:06 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