J
JK
Any idea why I can no longer select the the reference "Microsoft ADO Ext. 2.8
for DDL and Security?"
It's not in the list anymore?
for DDL and Security?"
It's not in the list anymore?
Any idea why I can no longer select the the reference "Microsoft ADO Ext. 2.8
for DDL and Security?"
It's not in the list anymore?
What version of Access?
I know that Access 2007 removed the ability to create Workgroup
Security (it will still use it in .mdb databases if it was created
with an earlier version). Perhaps ADOX has been removed as well.
David W. Fenton said:Why would one ever use any of ADO's ugly stepchildren for
Jet-specific functionality?
Dominic Vella said:On Error Resume Next
If Application.References("ADOX").IsBroken Then
If FileExists("c:\windows\system32\msadox.dll") Then
Application.References.AddFromFile
"c:\windows\system32\msadox.dll"
Else
Application.References.AddFromFile "c:\program files\common
files\system\ado\msadox.dll"
End If
MsgBox "ADOX Error discovered, probably due to being used in
Windows-Vista." _
& " This database needs to restart." _
I would welcome any help on restoring ADOX links when returning to WinXP
environments. I would seriously welcome if someone could provide a better
solution than the code I provided.
Only one reason that I know of.
Fixing AutoNumbers when Access assigns negatives or duplicates
http://www.allenbrowne.com/ser-40.html
Dominic Vella said:I used ADOX to automatically relink my BackEnd
database back to a server when it's in a Business
Network, and then switch it back to my BackEnd test
data when I'm developing. It's obvious that many
people do their linking manually considering how many
people do not understand what ADOX does.
Dominic Vella said:Actually, this topic has become mundane, hasn't it. I'd rather eat
prunes.
Not that I'm particularly a fan of the way Access has been
treated, but that's a bit unfair.
The new features were broken. Autonumbers particularly so.
DAO was maintained for backward compatibility, and new
features were not added to it.
Adding new features breaks things. Particularly, as with Access,
when the new features aren't tested properly, and don't fit with
the original underlying architecture.
So DAO was walled off as deprecated, and they tried not to
break it. I think that was a reasonable approach.
Again though, to use DAO you would require to add it as a
reference before it is usable, which then put's it back into the
same category as ADOX where Microsoft could one day decide to
switch it off without warning, and in fact I figured that was the
plan when Microsoft introduced ADO anyway.
Better than one of michka's favorite sayings, "I'd sooner slide
down a giant razor blade into a vat of iodine than... ".
DAO is included in the default references in Access 2003 and 2007.
For "safety's sake", some move it up the list to before the ADO
reference, just in case they slip up and forget to qualify the use
of an object that has the same name in both DAO and ADO.
Even if Microsoft introduced some new access method to replace
both ADO and DAO (called, say, Object Data Doohickey {ODD}), it's
likely it would be implemented so a reference was required.
David said:It was a bloody stupid decision and most people who understood what
DAO was realized it was stupid and continued to use DAO for
interacting with Jet data.
ADO is now the dead interface, and the Jet features for which a
programmatic interface is provided in ADO should have those
programmatic interfaces implemented in DAO, which is again (as it
should have been all along) the preferred interface for interacting
with Jet data.
Dominic Vella said:Again though, to use DAO you would require to add it as a reference before
it is usable, which then put's it back into the same category as ADOX where
Microsoft could one day decide to switch it off without warning, and in fact
I figured that was the plan when Microsoft introduced ADO anyway.
Actually, this topic has become mundane, hasn't it. I'd rather eat prunes.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.