Jump to content
Sign in to follow this  

Inserting data into MS-Access

Recommended Posts


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)
Edited by Nu11Byt3

Share this post

Link to post
Share on other sites

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.