URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 4
Reputation: Lei24 is an unknown quantity at this point 
Solved Threads: 0
Lei24 Lei24 is offline Offline
Newbie Poster

URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

 
0
  #1
Apr 15th, 2008
I am doing a project and i need to be able to add, record, search and delete customer bookings. I am using VB.Net 2003 and microsoft access 2003 and i need help on how to do this. Can anybody help me?? PLEASE?!?!

Basically i need the information that is entered in VB.Net to be stored in an access database e.g. name, tel no, date, time, table no, etc and search for the customer as well. i hope that makes sense.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

 
0
  #2
Apr 15th, 2008
show the effort and many people will help you
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 4
Reputation: Lei24 is an unknown quantity at this point 
Solved Threads: 0
Lei24 Lei24 is offline Offline
Newbie Poster

Re: URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

 
0
  #3
Apr 15th, 2008
hi. sorry. erm iv got this so far (if it makes any sens) but i think it is totally wrong and i really duno where to go from here. iv tried a million books and got no help from them!!

Dim dbE As New DAO.DBEngine
Dim db As DAO.Database
Dim rs As DAO.Recordset

db = dbE.OpenDatabase(Trim(TextBox1.Text))

rs = db.OpenRecordset("UPDATE Bookings (Name, TelNo, Date, Time, How many people?, Deposit paid?, TableNo) VALUE ("")" + Trim(Txtname.Text) + "'")

Try
If (rs.Fields("Name").Value) = Trim(Txtname.Text) Then

Dim Name, TelNo, Date1, Time, Howmanypeople, Depositpaid, TableNo As String
Name = rs.Fields("Name").Value
TelNo = rs.Fields("TelNo").Value
Date1 = rs.Fields("Date").Value
Time = rs.Fields("Time").Value
Howmanypeople = rs.Fields("How many people?").Value
Depositpaid = rs.Fields("Deposit paid?").Value
TableNo = rs.Fields("TableNo").Value
End If
End Try
Last edited by Lei24; Apr 15th, 2008 at 4:30 pm.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 16
Reputation: Uncle Gizmo is an unknown quantity at this point 
Solved Threads: 0
Uncle Gizmo Uncle Gizmo is offline Offline
Newbie Poster

Re: URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

 
0
  #4
Apr 15th, 2008
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 4
Reputation: Lei24 is an unknown quantity at this point 
Solved Threads: 0
Lei24 Lei24 is offline Offline
Newbie Poster

Re: URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

 
0
  #5
Apr 16th, 2008
Originally Posted by Uncle Gizmo View Post
Someone asked a similar question recently and I did this short video clip on how to do it with the free version of VB.Net

Cheers Tony



Thanks for that but I am doing my project in 2003. I watched it and tried but I am still lost! I forgot to mention that I am new to this as well!
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 11
Reputation: baker4 is an unknown quantity at this point 
Solved Threads: 0
baker4 baker4 is offline Offline
Newbie Poster

Re: URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

 
0
  #6
Apr 16th, 2008
Hi
I had the same problem as you a few months ago. Try the webiste www.homeandlearn.co.uk
this goes through what yo need to do step by step
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 4
Reputation: Lei24 is an unknown quantity at this point 
Solved Threads: 0
Lei24 Lei24 is offline Offline
Newbie Poster

Re: URGENT!! Adding, updating and deleting records in VB.Net 2003. URGENT!!

 
0
  #7
Apr 16th, 2008
Originally Posted by baker4 View Post
Hi
I had the same problem as you a few months ago. Try the webiste www.homeandlearn.co.uk
this goes through what yo need to do step by step

Thanks. I'll take a look.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC