Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dsum transactions based on account number msaccess 2003

Status
Not open for further replies.

rudolfelizabeth

Programmer
Jan 14, 2009
89
CW
How do you Dsum transactions in a query where the user will input via a query parameter the number of account and startdate and stopdate .
Dsum must then provide a correct running Beginning Balance <=startdate for that account

I used BeginningBalance:Dsum("Balance","Transactions","<=[startdate]")

with no results.
 
Try

Dsum("Balance","Transactions","Fieldname<="&[startdate])
 
I have tried your sug. Dsum("Balance","[transactions]![startdate]<="&[startdate])

No result.

 
If this is a query question, I'm not sure why you posted to the reports forum. It would help if you provided some sample records (only significant fields) and desired display in the query.

A correct expression might be something like the following but this would look at all records prior to the startdate entered at the prompt. BTW: IMHO, parameter prompts have no place in any application. Consider using controls on forms for all user interaction.

Dsum("Balance","Transactions","Fieldname<=#" & [startdate] & "#")

Duane
Hook'D on Access
MS Access MVP
 
No one is probably going to read this as this is a post from 6 months ago. But this helped me so much i became a member, regardless of this thread being off topic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top