Sign in to follow this  
Followers 0
Nu11Byt3

Inserting data into MS-Access

3 posts in this topic

#1 ·  Posted (edited)

Hi,This is my first post here.I hope i will get the solution.:)

I am making a GUI based app and i need to insert data into table .I am using MS Access for database.

This is my code which i ma trying:

$_dbname = "C:\Autoit files\auto\sample.mdb"
$tblname = "login"
$query = "insert into login values(GUICtrlRead($file1),GUICtrlRead($file2),GUICtrlRead($file3))"
$adoCon = ObjCreate("ADODB.Connection")
$adoCon.Open("Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & $_dbname)
$adoCon.Execute($query)
$adoCon.Close
Edited by Nu11Byt3

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

do a search for ADO or ADODB in the forum and you will see tons of examples of how to interface with an access (jet) db (i have one I made in my signature). Someone has even made an Access UDF for automating the application (or COM) itself.

Edited by spudw2k

Share this post


Link to post
Share on other sites

Thank you spudw2k :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0