Click here to Skip to main content
15,921,371 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Prasant_Panda10-Feb-06 20:54
Prasant_Panda10-Feb-06 20:54 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Dave Kreskowiak11-Feb-06 3:28
mveDave Kreskowiak11-Feb-06 3:28 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Prasant_Panda11-Feb-06 4:38
Prasant_Panda11-Feb-06 4:38 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Dave Kreskowiak11-Feb-06 15:22
mveDave Kreskowiak11-Feb-06 15:22 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Prasant_Panda12-Feb-06 17:17
Prasant_Panda12-Feb-06 17:17 
GeneralRe: How To Copy Files To a Network computer in vb.net Pin
Dave Kreskowiak13-Feb-06 16:43
mveDave Kreskowiak13-Feb-06 16:43 
QuestionMs Access Data Updation using VB.Net Pin
mayhem_rules9-Feb-06 18:06
mayhem_rules9-Feb-06 18:06 
AnswerRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak10-Feb-06 4:04
mveDave Kreskowiak10-Feb-06 4:04 
This is all something that wound be MUCH faster and better done in the database itself using straight SQL code. This would require completely rewriting this.

For example,
For Each DataRow In DV.Table.Rows
If Trim(DataRow(1)) = Trim(code1) And Trim(DataRow(3)) = Trim(period1) Then
addr1 = Trim(DataRow(2))
Exit For
End If

you're going through each record in a table and looking for records that has 2 fields that match certain requirements and returning that one record. This can be done in a simple SELECT statement:
SELECT addr1 FROM irec WHERE code1=something AND period1=something

This, of course, won't run because I have no idea what your database structure is, but it'll be FAR, FAR faster than you going through each record in a table and comparing things yourself.

You code is just using a database engine for storing data. It's not using the database engine to do any processing! Your code is taking hours to run because you're not using easier and faster methods to process your data. The more you can do in SQL code, the faster this process will go!

This is what I mean by competely scrapping what you have, rethinking your logic, and breaking each step of your logic down to simpler steps. Then you can find faster ways of doing each step. I bet you could do this entire thing in a single stored procedure on an SQL server and it would probably take all of 10 seconds to run (depending on the number of records of course!) To bad Access doesn't support true stored procedures!


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules12-Feb-06 20:41
mayhem_rules12-Feb-06 20:41 
GeneralRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak13-Feb-06 16:54
mveDave Kreskowiak13-Feb-06 16:54 
QuestionQuestion on Word automation in VB.NET Pin
cylix20009-Feb-06 17:48
cylix20009-Feb-06 17:48 
QuestionDeveloping Office Application in dot net Pin
rahul_7608759-Feb-06 16:33
rahul_7608759-Feb-06 16:33 
AnswerRe: Developing Office Application in dot net Pin
Steve Pullan10-Feb-06 12:17
Steve Pullan10-Feb-06 12:17 
Questionwhat is this mean? Pin
pandapatin9-Feb-06 15:52
pandapatin9-Feb-06 15:52 
AnswerRe: what is this mean? Pin
Dave Kreskowiak9-Feb-06 16:07
mveDave Kreskowiak9-Feb-06 16:07 
AnswerRe: what is this mean? Pin
Steve Pullan10-Feb-06 12:10
Steve Pullan10-Feb-06 12:10 
Questionimplement interface Pin
bluey129-Feb-06 15:25
bluey129-Feb-06 15:25 
AnswerRe: implement interface Pin
Dave Kreskowiak9-Feb-06 16:16
mveDave Kreskowiak9-Feb-06 16:16 
GeneralRe: implement interface Pin
bluey1212-Feb-06 14:34
bluey1212-Feb-06 14:34 
GeneralRe: implement interface Pin
Dave Kreskowiak12-Feb-06 15:05
mveDave Kreskowiak12-Feb-06 15:05 
GeneralRe: implement interface Pin
bluey1213-Feb-06 19:54
bluey1213-Feb-06 19:54 
GeneralRe: implement interface Pin
Dave Kreskowiak14-Feb-06 2:25
mveDave Kreskowiak14-Feb-06 2:25 
Questionerror Pin
fmardani9-Feb-06 12:04
fmardani9-Feb-06 12:04 
AnswerRe: error Pin
fmardani9-Feb-06 12:09
fmardani9-Feb-06 12:09 
QuestionSelect tab in tabstrip in design time Pin
Jlawrnce9-Feb-06 11:12
Jlawrnce9-Feb-06 11:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.