Re: [ cf-dev ] Monday SQL question

2004-02-23 Thread Matt Horn
I set the variable up as 0 not null the val() worked a treat thanks :D Matt - Original Message - From: "EWS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 11:30 AM Subject: Re: [ cf-dev ] Monday SQL question > Also, bear in mind

Re: [ cf-dev ] Monday SQL question

2004-02-23 Thread EWS
e type mismatch - Original Message - From: "EWS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 10:04 AM Subject: Re: [ cf-dev ] Monday SQL question Are you sure its the sum causing the error and not the yearid or monthid On Mon, 23 Feb 20

Re: [ cf-dev ] Monday SQL question

2004-02-23 Thread EWS
t; Sent: Monday, February 23, 2004 10:04 AM Subject: Re: [ cf-dev ] Monday SQL question Are you sure its the sum causing the error and not the yearid or monthid On Mon, 23 Feb 2004 09:40:24 +0200, Matt Horn <[EMAIL PROTECTED]> wrote: > Hi > I have this very simple SQL query > &g

Re: [ cf-dev ] Monday SQL question

2004-02-23 Thread Matt Horn
the SQL statement works I get a variable out called qry.total but when I do I get the type mismatch - Original Message - From: "EWS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 10:04 AM Subject: Re: [ cf-dev ] Monday SQL questio

Re: [ cf-dev ] Monday SQL question

2004-02-23 Thread EWS
Are you sure its the sum causing the error and not the yearid or monthid On Mon, 23 Feb 2004 09:40:24 +0200, Matt Horn <[EMAIL PROTECTED]> wrote: Hi I have this very simple SQL query select Sum(amount) as total from tbltotals where yearID =#getyear.yearID# and monthid=#month# I loop over the

[ cf-dev ] Monday SQL question

2004-02-22 Thread Matt Horn
Hi I have this very simple SQL query select Sum(amount) as total from tbltotals where yearID =#getyear.yearID# and monthid=#month# I loop over the query outputting #qry.total# for each month I want to keep a running total for that year but when I try to add it up I get a type mismatch error