Access Database Homepage

Type keyword or phrase to search:

 

 

 


Access Database Homepage

The know how and power behind access database

Want to teach yourself Access? Free online guide at About Access Databases
 
Learn Access 2c Planning English & French Captions Music Mark Davis Broken Ground
Planning a database, part c. plan fields and relationships for people categories addresses phones email websites types padr cross reference table between people and addresses ...

How can i insert data into access database.mdb using vb 2008?

Question: How can i insert data into access database.mdb using vb 2008?

(Posted by: The Phantom on 2010-07-09 08:09:24)

I've made a textbox and a button and i added a data source which is an access 2003 database it has the table name: first grade, column: names, and i want to add the text in the text box into the names column....PLzzzzz HELP!!!!


Answers:

Posted by: SoccaFreak on 2010-07-09, 08:17:34

Dim sql_insert, param_User Dim data_source param_User = "the name you're putting into the database " data_source = "Provider= Microsoft.Jet.OLEDB.4.0; Data Source= " & "the location of the database, eg. c:\User\My Documents\database.mdb) sql_insert = "INSERT INTO first grade (names) VALUES (' " & param_User & "'); " Set con = Server.CreateObject( "ADODB.Connection ") con.Open data_source con.Execute sql_insert con.Close Set con = Nothing This is what I used for one of my websites, this is through an asp but since i used vb script for it, almost everything should be applicable for VB 2008.

  

Powered by Yahoo! Answers (R)


Back to Previous page

Google News will be listed here
Go Articles will be listed here

Bookmark Access Database Homepage


Want to teach yourself Access? Free online guide at About Access Databases

 

 
Sitemap | Terms of Use | Privacy Policy | Contact

© copyright 2010 Access Database.com, All Rights Reserved.

Legal Notice: This website is powered by Amazon®, Adsense, Clickbank®, Yahoo!® Answers and Youtube. All trademarks are copyrighted by their respective owners. Please read our terms of use and privacy policy.