Mikey <(E-Mail Removed)> wrote in
news:i8vr90$i64$(E-Mail Removed):
> On 10/11/2010 1:50 PM, David-W-Fenton wrote:
>> Mikey<(E-Mail Removed)> wrote in
>> news:i8qle1$5vl$(E-Mail Removed):
>>
>>> On 10/8/2010 9:53 PM, David-W-Fenton wrote:
>>>> Mikey<(E-Mail Removed)> wrote in
>>>> news:i8o3s4$5fm$(E-Mail Removed):
>>>>
>>>>> dbE := CreateOleObject('DAO.DBEngine.36');
>>>>
>>>> This should just be:
>>>>
>>>> CreateObject('DAO.DBEngine.36');
>>>>
>>>> I've never used CreateOleObject for any VBScript. I don't even
>>>> know what it's for.
>>>
>>> D2010 is Delphi. I should have been more descriptive.
>>> CreateOleObject is correct. This has worked for years on an XP
>>> box.
>>
>> Ah. I wonder if the problem is the database password. Also, is it
>> 64-bit Win7 or regular 32-bit? Have you tried the OpenDatabase
>> command on a database that has no database password?
>
> It's 64 bit. It reacts the same with a no-password .mdb.
I assume it wouldn't compile for 64-bit with DAO involved, so you're
compiling for x86 target system?
>> Those are things that seem relevant to me.
>
> Agreed.
>
>> There could also be some sandbox-mode issues there, but I have no
>> idea how to deal with those from outside Access.
>
> I haven't been in a sand-box for over 60 years now... ;-> What's a
> sand-box issue?
Well, sandbox mode mostly controls what you can do in Jet, not its
ability to open a file, but it's worth a shot. There could also be
issues with UAC interfering. I recently had to manually edit
registry keys on a WinXP workstation that wouldn't allow me to set
macro security in A2003 OFF even though I was running as a domain
administrator. But I was able to set the registry keys manually.
> Maybe relevant: Delphi's counterpart to Access' preferences
> doesn't see DAO360.dll.
That seems pretty relevant to me. Have you checked
Stackoverflow.com? I see a few Access-related Delphi questions on
there. There might be enough Delphi programmers there to help you
out, as I don't think the issue is a Jet/DAO problem at all.
--
David W. Fenton
http://www.dfenton.com/
contact via website only
http://www.dfenton.com/DFA/