Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #16  
Old 05-26-2009, 05:03 PM
WillysK5 WillysK5 is offline
Registered User
 
Join Date: 20 May 2008
MS Office Version:2003 suite
Posts: 59
WillysK5 is becoming part of the community
Re: Sum in form footer (Access 2003)

Please Register to Remove these Ads

Actually, it works well without the '0' in the syntax and set as 'blank'. Were you looking at the '0's in split's first post?
Reply With Quote
  #17  
Old 05-26-2009, 05:56 PM
split_atom18 split_atom18 is offline
Forum Contributor
 
Join Date: 23 Apr 2009
Location: Fredericksburg, IA
MS Office Version:Ultimate 2007
Posts: 126
split_atom18 Has established their mark in the community
Re: Sum in form footer (Access 2003)

What he meant was not in the form itself, or in that equation. He meant if you go to the table and select design mode, and go to the fields you are adding together, set their default value to 0. That way when you don't enter in a value they already have a 0.

All "Nz([Field])" does is if the field is "Null" then it returns 0 for the purpose of calculating. It fixes the current issue, but down the road you may have an issue you have to use Nz for if you leave them "Null".

Disclaimer, this is what I think he meant

P.S. Sorry for "hi-jacking" you helping him ConneXionLost.

Dan
__________________
"I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
If my advice has been helpful to you, then please help me by clicking on the scales and adding to my reputation, Thanks!
Reply With Quote
  #18  
Old 05-26-2009, 06:27 PM
ConneXionLost's Avatar
ConneXionLost ConneXionLost is offline
Valued Forum Contributor
 
Join Date: 11 Mar 2009
Location: Victoria, Canada
MS Office Version:2003
Posts: 576
ConneXionLost is attaining expert status ConneXionLost is attaining expert status
Re: Sum in form footer (Access 2003)

That is exactly what I meant; good read split!

BTW - I don't consider what you did as "hi-jacking". I'm happy to be sharing neurons with you.

Cheers,
__________________
Docendo discimus.
Reply With Quote
  #19  
Old 06-22-2009, 06:58 AM
armyguyinfl armyguyinfl is offline
Registered User
 
Join Date: 22 Jun 2009
Location: Port St. Lucie
MS Office Version:Access 2003
Posts: 1
armyguyinfl is becoming part of the community
Re: Sum in form footer (Access 2003)

Desperate Need been trying to find it out for hours now!

Please help. In Access 2003 I am trying to calculate a sum of all records of a specific field. I have bound the field and unbound the field. I am able to place a specific value in the field but not able to get a sum of the values on my form footer as a total. I keep getting an

The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]
There may have been an error evaluating the function, event, or macro.

Code With Bound Field to Table Field:
'Private Sub Text75_Change()
'Me.Text75.OnChange
'Me.InputParameters (Sum(ChangeOrders.PendingFundedAmount))
'End Sub

'Private Sub Text75_Click()
'Me.Text75 = "2000"
'End Sub

'Private Sub Text75_Exit(Cancel As Integer)
'Me.Text75 = "10000"
'End Sub

Private Sub Text75_Change(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.DataEntry = False
Me.Text75 = Sum([ChangeOrders].[PendingFundedAmount])
End Sub

When I try the other route unbound I am getting a sub or function not defined:

Private Sub Text75_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.DataEntry = False
Me.Text75 = Sum(Pending2FundedAmount)
End Sub
Reply With Quote
  #20  
Old 06-22-2009, 11:11 AM
shg's Avatar
shg shg is online now
Forum Guru
 
Join Date: 20 Jun 2007
Location: The Great State of Texas
MS Office Version:2003, 2007
Posts: 18,549
shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay
Re: Sum in form footer (Access 2003)

Armyguy,

Please take a few minutes to read the forum rules, and then start your own thread, with your code wrapped in code tags.
__________________
Entia non sunt multiplicanda sine necessitate.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump