Jump to content

Recommended Posts

Posted

I am trying to read/write to MS Access and every example I can find used the function "ObjCreate".

For some reason this is not recognized on my machine.

Is this an AutoIT issue of a development environmant issue.

Any Ideas.

The script I am trying to run is

-----------------------------------

$dbname="c:\tempDB.mdb"

$tblname="table1"

$fldname="field1"

$format="Text(50)"

_CreateDB($dbname)

Func _CreateDB($dbname)

$newMdb = ObjCreate("ADOX.Catalog")

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

$newmdb.ActiveConnection.Close

EndFunc

-------------------------------------------------

  • 1 year later...
Posted

I am trying to read/write to MS Access and every example I can find used the function "ObjCreate".

For some reason this is not recognized on my machine.

Is this an AutoIT issue of a development environmant issue.

Any Ideas.

The script I am trying to run is

-----------------------------------

$dbname="c:\tempDB.mdb"

$tblname="table1"

$fldname="field1"

$format="Text(50)"

_CreateDB($dbname)

Func _CreateDB($dbname)

$newMdb = ObjCreate("ADOX.Catalog")

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

$newmdb.ActiveConnection.Close

EndFunc

-------------------------------------------------

Your script runs fine for me. I am using the latest version (V3). I am not too good at this stuff but thought this might give you another clue in trying to solve the problem.

  • Moderators
Posted

Your script runs fine for me. I am using the latest version (V3). I am not too good at this stuff but thought this might give you another clue in trying to solve the problem.

This topic is over a year old.

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