Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Database > MS Access

MS Access Related discussions using Access and JET as the backend

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2009, 9:41 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jun 2009
Age: 20
Posts: 4
Reputation: 0
mukulmukul is on a distinguished programming path ahead
Default need help with ms access usage in vb.net

hi.
i m using visual basic 2005
i am using a form to update a database created in ms access
i have created datasets, n also initialised all insert and upadate query`s using command builder


my statemens are

DataSet1.TRANSACTION.Rows.Add(New String() {DataSet1.TRANSACTION.Count + 1, bookcode, bookid, memberid, issuedate, duedate, duedate, 0})
TRANSACTIONTableAdapter.Update(DataSet1.TRANSACTIO N)


the update command generated by command builder is

UPDATE `TRANSACTION` SET `BOOK CODE` = ?, `BOOK_ID` = ?, `MEMBER_ID` = ?, `DATE OF ISSUE` = ?, `DUE DATE` = ?, `DATE OF RETURN` = ?, `FINE (IF ANY)` = ? WHERE (((? = 1 AND `SERIAL_NO` IS NULL) OR (`SERIAL_NO` = ?)) AND ((? = 1 AND `BOOK CODE` IS NULL) OR (`BOOK CODE` = ?)) AND (`BOOK_ID` = ?) AND ((? = 1 AND `MEMBER_ID` IS NULL) OR (`MEMBER_ID` = ?)) AND ((? = 1 AND `DATE OF ISSUE` IS NULL) OR (`DATE OF ISSUE` = ?)) AND ((? = 1 AND `DUE DATE` IS NULL) OR (`DUE DATE` = ?)) AND ((? = 1 AND `DATE OF RETURN` IS NULL) OR (`DATE OF RETURN` = ?)) AND ((? = 1 AND `FINE (IF ANY)` IS NULL) OR (`FINE (IF ANY)` = ?)))
with these statements.. i am having the dataset updated.. but my original database in access is not having the changes

any help how to get the changes reflected. please help.. m very new to vb.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-06-2009, 7:47 PM
cjard's Avatar
VB.NET Forum All-Mighty
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Apr 2006
Age: 65
Posts: 6,378
Reputation: 746
cjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond repute
Default

read the DNU link in my signature
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 12:17 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.