Access VB6 sum bug
From: polym (mymail_at_nospam.com)
Date: 01/19/05
- Next message: Veign: "Re: Access VB6 sum bug"
- Previous message: Tim B: "RE: Runtime Error 5 - Invalid Procedure call or Argument in VB"
- Next in thread: Veign: "Re: Access VB6 sum bug"
- Reply: Veign: "Re: Access VB6 sum bug"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 Jan 2005 19:06:04 +0200
I am using access database.
If i open access database and execute that query there is no problem.
But if i execute that query from vb6 i got incorrect results.
Here is my query :
SELECT SUM (a - b - c + d) as fark FROM mytable where mytype=1
I know that
Sum of a is 0 , sum of b is 0 , sum of d is 0.
sum of c is 3.
But in vb result is 11.
No meaning.
Like i said before if i execute query in access it results 3. ok.
But incorrect result in vb6.
If i execute SELECT SUM (a) , sub( b ) , sum( c ) , sum( d) FROM mytable
where bytype=1
in vb6 i got sum(c) as 3.
I habe vb6 with sp6. Operating system : windows 2003 enterprise server. i
applied online windows update.
I am using MDAC 2.7 sp1.
Did you get any bug like this?
- Next message: Veign: "Re: Access VB6 sum bug"
- Previous message: Tim B: "RE: Runtime Error 5 - Invalid Procedure call or Argument in VB"
- Next in thread: Veign: "Re: Access VB6 sum bug"
- Reply: Veign: "Re: Access VB6 sum bug"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|