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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Entering forumla in text box on form

Status
Not open for further replies.

leewisener

Technical User
Feb 1, 2003
94
GB
I have a form linked to a query and want to put a text box on to calculate a total of payments received between two dates.

The fields in the query are:

date
amount

So I would want to do something like:

sum [amount] were date is between x and y

Anyone help?

Thanks

Lee
 
Look in the help for the SUMIF function. Then return the value calc'd by the formula to the textbox.

Or calculate it in the form code and call it after the data refresh.

Cheers,
Dave

Probably the only Test Analyst on Tek-Tips

animadverto vos in Abyssus!

Take a look at Forum1393 & sign up if you'd like
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top