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

Visual Basic

 
AnswerRe: data bindings problem Pin
Nilesh Hapse8-Aug-07 23:21
Nilesh Hapse8-Aug-07 23:21 
AnswerSenthil's Reply for data bindings problem Pin
Senthil S9-Aug-07 0:20
Senthil S9-Aug-07 0:20 
GeneralRe: data bindings problem Pin
Sonia Gupta8-Aug-07 23:46
Sonia Gupta8-Aug-07 23:46 
GeneralRe: data bindings problem Pin
Nilesh Hapse8-Aug-07 23:57
Nilesh Hapse8-Aug-07 23:57 
AnswerRe: data bindings problem Pin
Urs Enzler9-Aug-07 2:09
Urs Enzler9-Aug-07 2:09 
Questiongprs Pin
ahzarmokhli8-Aug-07 22:35
ahzarmokhli8-Aug-07 22:35 
AnswerRe: gprs Pin
Dave Kreskowiak9-Aug-07 3:30
mveDave Kreskowiak9-Aug-07 3:30 
QuestionProblems in Dataset Update Pin
HinJinShah8-Aug-07 22:20
HinJinShah8-Aug-07 22:20 
I am having problem with dataset update! I am using a DataAcesTier to access data and update the data and presentation tier is used to do all the manipulation!
Presentation Tier uses DataAcessTier to retrieve the data but when i try to update the database with dataset , NOTING HAPPENS! NO ERROR but NO UPDATES too..
Here is how it goes!!!
I have a class with the name AccessData in my DataAccessTier and it have somehow this sort of code

public sdaMajorDataAdapter as new SqlDataAdapter
public strAllDBTables(50) as string
'strAllDBTables Array is inialized with table names with a sub routine

Public Function CreateDataset() As DataSet
Dim dsMajorDataSet As New DataSet
OpenDbConnection()
' some code for dbcommand and dbconnection variables etc

'For loop used to loop through the table names
For iCounter = 0 to strAllDBTables.length(0) - 1
sdaMajorDataAdapter.Fill(dsMajorDataSet, strAllDBTables(iCounter))
Next
'I have populated the dataset with all the DB tables supposedly
CloseDBConnection()
'this DS is returned to the class from where its accessed
return dsMajorDataSet

End Function
======
Similary in the same class i have a Function for DB update

Public Sub UpdateDataSet(ByVal updateDS As DataSet, ByVal strTableName As String)
OpenDbConnection()
dim dsUpdate as new dataset

'dbCommand.Connection = dbConnection
'dbCommand.CommandText = "Select * from " & strTableName
'sdaUpdate.SelectCommand = dbCommand
'sdaMajorDataAdapter.Fill(dsUpdate, strTableName)
'I have tried to use dataadapter to fill a new dataset and then try to update .no gain

sdaMajorDataAdapter.Update(updateDS, strTableName)
'Which DataAdapter is to be used here ... or do i need to add update queries
'with adapter?, if YES , how to add it?
' There is no error here but NO UPDATES too?

CloseDBConnection()
End Sub

========
'i am accessing these functions in Presentation Tier Class with the name AdminControlPanel Class

'here i have a variable
dim dsControlPanel as new dataset
dim dsRead as new AccessData ' an object of AccessData Class

dsControlPanel = dsRead.CreateDataSet()

' than all the manipulation is done here and after that i return the DS to data access class for updation like this

dsRead.UpdateDataSet(dsControlPanel, "Name of the table to be updated")

'No Error but nothing happens?

i guess i am doing something wrong as to which dataAdapter is to be used?


Thanks for your time


AnswerRe: Problems in Dataset Update Pin
Dave Kreskowiak9-Aug-07 3:30
mveDave Kreskowiak9-Aug-07 3:30 
GeneralRe: Problems in Dataset Update Pin
HinJinShah10-Aug-07 0:05
HinJinShah10-Aug-07 0:05 
QuestionForm in a Form Pin
Trupti Mehta8-Aug-07 21:51
Trupti Mehta8-Aug-07 21:51 
AnswerRe: Form in a Form Pin
MartyK20078-Aug-07 22:03
MartyK20078-Aug-07 22:03 
QuestionRe: Form in a Form Pin
Trupti Mehta9-Aug-07 0:56
Trupti Mehta9-Aug-07 0:56 
AnswerRe: Form in a Form Pin
MartyK20079-Aug-07 1:36
MartyK20079-Aug-07 1:36 
AnswerRe: Form in a Form Pin
Tom Deketelaere9-Aug-07 1:41
professionalTom Deketelaere9-Aug-07 1:41 
AnswerRe: Form in a Form [modified] Pin
Tom Deketelaere8-Aug-07 22:39
professionalTom Deketelaere8-Aug-07 22:39 
AnswerRe: Form in a Form Pin
Luc Pattyn9-Aug-07 1:57
sitebuilderLuc Pattyn9-Aug-07 1:57 
AnswerRe: Form in a Form Pin
Dave Kreskowiak9-Aug-07 3:15
mveDave Kreskowiak9-Aug-07 3:15 
AnswerRe: Form in a Form Pin
Trupti Mehta9-Aug-07 4:09
Trupti Mehta9-Aug-07 4:09 
QuestionDrag and move a control in a form Pin
Mogtabam8-Aug-07 20:22
Mogtabam8-Aug-07 20:22 
AnswerRe: Drag and move a control in a form Pin
Nilesh Hapse8-Aug-07 20:33
Nilesh Hapse8-Aug-07 20:33 
AnswerRe: Drag and move a control in a form [modified] Pin
Tom Deketelaere8-Aug-07 20:39
professionalTom Deketelaere8-Aug-07 20:39 
AnswerRe: Drag and move a control in a form Pin
Dave Kreskowiak9-Aug-07 3:11
mveDave Kreskowiak9-Aug-07 3:11 
QuestionSetup For Vb.net Project Pin
K03068-Aug-07 18:51
K03068-Aug-07 18:51 
AnswerRe: Setup For Vb.net Project Pin
Christian Graus8-Aug-07 19:08
protectorChristian Graus8-Aug-07 19:08 

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.