Sign in to follow this  
Followers 0
Michael Lester

Objcreate Not Being Recognized

4 posts in this topic

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

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Are you getting some type of error?

I'd also suggest downloading the latest beta if you haven't already.

Edited by big_daddy

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

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