how to insert records into a table using datacontrol

Reply

Join Date: Jan 2008
Posts: 2
Reputation: newvbee is an unknown quantity at this point 
Solved Threads: 0
newvbee newvbee is offline Offline
Newbie Poster

how to insert records into a table using datacontrol

 
0
  #1
Jan 28th, 2008
Hello,

I'm very new to visual basic ver 5.00 . and I need help please.

I have ms access '97 database with three tables. I created a form using form wizard , and it has a data control included. How do I enter data through the datacontrol to my tables in the database.
I would also like to delete ,edit , add records to the table at a later stage
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 65
Reputation: bushman_222 is an unknown quantity at this point 
Solved Threads: 4
bushman_222's Avatar
bushman_222 bushman_222 is offline Offline
Junior Poster in Training

Re: how to insert records into a table using datacontrol

 
0
  #2
Jan 28th, 2008
VB5 and Access 97 - WOW.

There are a few of ways to access the data bases (I've only worked in VB6, but I assume that it will work for 97 - I'm sure someone will correct me if I am wrong)

The main options that you have available ADO and DAO, ODBC - I've only used DAO (jet).

But what ever one you choose, you will need to tell Vb what one you are using by going to the references section and selecting it.


Here is a good link that explains them and provides some sample code
http://www.vbexplorer.com/VBExplorer...er_ADO_DAO.asp
Last edited by bushman_222; Jan 28th, 2008 at 7:08 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2
Reputation: newvbee is an unknown quantity at this point 
Solved Threads: 0
newvbee newvbee is offline Offline
Newbie Poster

Re: how to insert records into a table using datacontrol

 
0
  #3
Jan 30th, 2008
Originally Posted by bushman_222 View Post
VB5 and Access 97 - WOW.

There are a few of ways to access the data bases (I've only worked in VB6, but I assume that it will work for 97 - I'm sure someone will correct me if I am wrong)

The main options that you have available ADO and DAO, ODBC - I've only used DAO (jet).

But what ever one you choose, you will need to tell Vb what one you are using by going to the references section and selecting it.


Here is a good link that explains them and provides some sample code
http://www.vbexplorer.com/VBExplorer...er_ADO_DAO.asp


Hello bushman,

thanks for your timely reply. I am aware of ado and dao. But not all that familiar with the use of data control. I created a simple form in vb , with data control, and tried to run it. I keep gettting the error 'Function or interface markedas restricted or the function uses an Automation type , not suppoerted in Visula Basic.""
I can't seem to under stand what the error could be. I have decalred the data base name and recordsource in the form properites.

Also ,another question...
If I have developed an application in windows in vb ver 5.oo, can I post that application on a web site , and get users to access the application by logging into the website, or would I have to develop the application again using Web forms (ASp.NET)

Any suggestion would be helpful
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 71
Reputation: venkatramasamy is an unknown quantity at this point 
Solved Threads: 12
venkatramasamy's Avatar
venkatramasamy venkatramasamy is offline Offline
Junior Poster in Training

Re: how to insert records into a table using datacontrol

 
0
  #4
Jan 30th, 2008
Hi,
Ther ir no way to use VB application softwares in Web,

Web applications are distincly different,yiou cantry with DHTML or go for Dot net

Windows app cannot be used as Web app

With regards
Venkatramasamy SN
I Learned from my Mistakes and I learned Lot!
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 Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC