Jump to content

inserting data in MS Access using AutoIT program


Kash
 Share

Recommended Posts

Hello,

Can someone provide code snippet for inserting data in MS Access Database using AutoIT program?

I am using below code butit is not working.

$dbname="TestAccessDB.mdb"

$addfld = ObjCreate("ADODB.Connection")

$addfld.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $dbname)

$sql_insert = "insert into CallRecords(BAN,Timestamp) values('1234','04/22/2009') "

$addfld.Execute($sql_insert)

$addfld.Close

Thank you!

Regards

Kash

Link to comment
Share on other sites

  • Moderators

Hello,

Can someone provide code snippet for inserting data in MS Access Database using AutoIT program?

I am using below code butit is not working.

$dbname="TestAccessDB.mdb"

$addfld = ObjCreate("ADODB.Connection")

$addfld.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $dbname)

$sql_insert = "insert into CallRecords(BAN,Timestamp) values('1234','04/22/2009') "

$addfld.Execute($sql_insert)

$addfld.Close

Thank you!

Regards

Kash

Don't double post!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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