Jump to content

Recommended Posts

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
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...