Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > problem with getting the total from a table


Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2004, 06:04 PM
tom2knox's Avatar
tom2knox tom2knox is offline
Junior Contributor
 
Join Date: Jul 2003
Location: Tondo Philippines
Posts: 313
Unhappy problem with getting the total from a table


i have a table named charges and it is related in a master table, the charges table is too big, it has the size of about 98 mb, when i execute a query (rom DAO or ADO) like

query = "SELECT sum(amt) as [sum_amt], item_code FROM charges WHERE pk = '" & myPkey & "' GROUP BY item_code"

the computer hangs up, but if the table charges is not that big like 30 mb it run smoothly, so i decided to create a function for this. but ive got no idea of it, any idea on this, im thinking of comparing the previous, next, and present record inside a loop statement.
__________________
On Error Resume Next
If Code = vb Then
use [vb] [/vb]
End If
Reply With Quote
  #2  
Old 03-09-2004, 06:57 PM
tom2knox's Avatar
tom2knox tom2knox is offline
Junior Contributor
 
Join Date: Jul 2003
Location: Tondo Philippines
Posts: 313
Default

thnx anyway, i figured it out...
__________________
On Error Resume Next
If Code = vb Then
use [vb] [/vb]
End If
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
checking the existence of a table in database cp537 Database and Reporting 13 09-30-2002 05:48 PM
Printer Error wilsonwerks General 1 04-30-2001 03:55 PM
Printer Problems wilsonwerks General 3 04-30-2001 03:53 PM
case study problem dfdfsfer Database and Reporting 3 04-18-2001 07:02 AM
Problem reading a table from an open database jakes_72 Database and Reporting 1 02-24-2001 10:52 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->