Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2005, 09:09 AM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help!!! clogged brain

Hello All

i have a Continuous form with 2 columns.

sadate, p

i would like to be able to SUM this by current month (to date)

this is the code that i used for mdb

=Sum(IIf(DatePart("m",Date())=DatePart("m",[sadate]),[p],0))

after i moved the form to adp all i get are errors,


thanks in advance


 
Old May 25th, 2005, 12:57 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about some sample data and DDL of your table? Please

 
Old May 25th, 2005, 02:48 PM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Shahchi1

hummmm
sample data, its just numbers

my table is on the sql server

 
Old May 25th, 2005, 02:49 PM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i failed to put in my first post that this string is a control source on a textbox






Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a datalist brain fart... Hal Levy ASP.NET 1.0 and 1.1 Professional 0 December 31st, 2004 08:36 PM
Brain storming PHP MYSQL FAQ's-please go nthrough phpsharma Beginning PHP 0 November 4th, 2003 02:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.