User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,611 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,409 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 4084 | Replies: 3
Reply
Join Date: Apr 2007
Location: luton
Posts: 11
Reputation: omoz4real is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
omoz4real omoz4real is offline Offline
Newbie Poster

c# connection to microsoft access DB

  #1  
Nov 6th, 2007
Hi everyone, please i created a C# windows application to implement a form with a ListBox, a TextBox, an Edit button, an Insert button, a Delete button, a Update button and an Exit button in the form. I want my C# program to be able to copy the columns of record in the Books table of the DB to my C# program and to display all records in the ListBox.I want to add event handlers to the control so that i would be able to edit,delete,insert and update records to the dataset as well as update the Database.Please I have been able to create the form with the listbox and added the buttons.the exit button,select button to display the records on the list box,insert button works but the delete button dosent work when i select a row in the listbox to be deleted from the database. please could anyone help me with my code.below is the attached code i wrote and the database created as a zip file. can anybody please edit my code so that it works appropriately.
thanks
omos.
Attached Files
File Type: zip DBConnection.zip (46.9 KB, 86 views)
OmosJiggaTM
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 3
Reputation: miketillman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
miketillman miketillman is offline Offline
Newbie Poster

Re: c# connection to microsoft access DB

  #2  
Dec 4th, 2007
this looks familiar..
Reply With Quote  
Join Date: Dec 2003
Location: Nashville, TN
Posts: 2,333
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Rep Power: 11
Solved Threads: 102
Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: c# connection to microsoft access DB

  #3  
Dec 6th, 2007
Can you please post a snippet of your code, and what exactly it's not doing? I think you'll get a better result than simply posting a ZIP of your work, and expecting someone to sift through it all...
Alex Cavnar, aka alc6379
Reply With Quote  
Join Date: Oct 2007
Posts: 166
Reputation: Jugortha is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 12
Jugortha Jugortha is offline Offline
Junior Poster

Re: c# connection to microsoft access DB

  #4  
Dec 19th, 2007
I guess that u didn't update your dataBase after each operation
u know that the ADO.Net works in a disconnected mode that means every changements are made at the data set level and not in the dataBase to update your data Base u must use the DataAdapter.update() method
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 7:20 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC