Click here to Skip to main content
15,896,118 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionrestrict user to access programs from the program list Pin
vijay047-Feb-06 19:16
vijay047-Feb-06 19:16 
AnswerRe: restrict user to access programs from the program list Pin
Dave Kreskowiak8-Feb-06 8:03
mveDave Kreskowiak8-Feb-06 8:03 
QuestionHow to upload .dll files Pin
Sgn_Flex7-Feb-06 19:14
Sgn_Flex7-Feb-06 19:14 
AnswerRe: How to upload .dll files Pin
Dave Kreskowiak8-Feb-06 8:02
mveDave Kreskowiak8-Feb-06 8:02 
QuestionI stumble with Crystal report on VB.NET2005 Pin
Swiss Mantoro7-Feb-06 19:06
Swiss Mantoro7-Feb-06 19:06 
QuestionMs Access Data Updation using VB.Net Pin
mayhem_rules7-Feb-06 18:09
mayhem_rules7-Feb-06 18:09 
AnswerRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak8-Feb-06 8:00
mveDave Kreskowiak8-Feb-06 8:00 
GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules8-Feb-06 18:04
mayhem_rules8-Feb-06 18:04 
Sorry once again I am providing a huge chunk of code below. Please review it and provide me with some ideas to speed up the process.

Code :
----------------------------------------------------------------------------
str = "select id, code, name, period from EMP2000"
ipcon.Open()
DA = New OleDbDataAdapter(str, ipcon)
DS = New DataSet
DA.Fill(DS, "irec")

str2 = "select id, code, addr, period from EMPADDR"
DA2 = New OleDbDataAdapter(str2, ipcon)
DS2 = New DataSet
DA2.Fill(DS2, "imsctrl")
DV = New DataView(DS2.Tables("imsctrl"))

str3 = "select Id, code, name, addr from EMPDATA where period = '2000'"
DA3 = New OleDbDataAdapter(str3, ipcon)
DS3 = New DataSet
DA3.Fill(DS3, "emp")
Dim cb As New OleDbCommandBuilder(DA3)

Dim cnt As Integer
cnt = 0
'''
Dim DataRow As DataRow
For Each myrow In DS.Tables("irec").Rows
If (myrow(1).Equals(System.DBNull.Value)) Then
code1 = ""
Else
code1 = myrow(1)
End If
If (myrow(3).Equals(System.DBNull.Value)) Then
period1 = ""
Else
period1 = myrow(3)
End If
If (myrow(2).Equals(System.DBNull.Value)) Then
name1 = ""
Else
name1 = myrow(2)
End If

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
Next
dsNewRow = DS3.Tables("emp").NewRow
dsNewRow.Item("code") = Trim(code1)
dsNewRow.Item("name") = trim(name1)
dsNewRow.Item("addr") = Trim(addr1)
DS3.Tables("emp").Rows.Add(dsNewRow)
DA3.Update(DS3, "emp")
Next
----------------------------------------------------------------------------

Dave, Is there a way to insert all the records in a dataset and finally update the dataset to the database? If there is such a way then is it really fast. Thnx for your help.


With Best Regards,

Mayur
GeneralRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak9-Feb-06 3:02
mveDave Kreskowiak9-Feb-06 3:02 
GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules10-Feb-06 0:18
mayhem_rules10-Feb-06 0:18 
Questionusing DVP1412.dll in VB.NET Pin
bskirkman7-Feb-06 17:44
bskirkman7-Feb-06 17:44 
QuestionHow to remove this Office COM Add-in Pin
cylix20007-Feb-06 17:31
cylix20007-Feb-06 17:31 
QuestionProblem on changing recordset to dataset Pin
drexler_kk7-Feb-06 17:14
drexler_kk7-Feb-06 17:14 
AnswerRe: Problem on changing recordset to dataset Pin
alien viper7-Feb-06 21:37
alien viper7-Feb-06 21:37 
GeneralRe: Problem on changing recordset to dataset Pin
drexler_kk7-Feb-06 22:14
drexler_kk7-Feb-06 22:14 
AnswerRe: Problem on changing recordset to dataset Pin
Guffa7-Feb-06 22:36
Guffa7-Feb-06 22:36 
GeneralRe: Problem on changing recordset to dataset Pin
drexler_kk8-Feb-06 20:48
drexler_kk8-Feb-06 20:48 
QuestionHELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom7-Feb-06 13:22
isgrom7-Feb-06 13:22 
AnswerRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Mekong River7-Feb-06 14:53
Mekong River7-Feb-06 14:53 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom8-Feb-06 5:51
isgrom8-Feb-06 5:51 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Dave Kreskowiak8-Feb-06 7:56
mveDave Kreskowiak8-Feb-06 7:56 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom8-Feb-06 9:06
isgrom8-Feb-06 9:06 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Dave Kreskowiak8-Feb-06 11:35
mveDave Kreskowiak8-Feb-06 11:35 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Mekong River9-Feb-06 20:18
Mekong River9-Feb-06 20:18 
QuestionCopy data from Datagrid to form Pin
Jlawrnce7-Feb-06 10:54
Jlawrnce7-Feb-06 10:54 

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.