Michael Lester Posted March 27, 2006 Share Posted March 27, 2006 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 ------------------------------------------------- Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 27, 2006 Moderators Share Posted March 27, 2006 (edited) Are you getting some type of error? I'd also suggest downloading the latest beta if you haven't already. Edited March 27, 2006 by big_daddy Link to comment Share on other sites More sharing options...
tunaroll Posted May 8, 2007 Share Posted May 8, 2007 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.CloseEndFunc-------------------------------------------------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. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 8, 2007 Moderators Share Posted May 8, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now