Donald Maloney
asked on
Can't find the name ' DBEngine ' (Or DBCurrent) you entered in the expression
Can't find the name 'CurrentDb' you entered in the expression
I have an application I am trying to deploy,
I have created a startup script to load the compiled MDE Access application, Access runtime and the tables.
I have run the startup on three of my computers and it loads and runs.
I have deleted the application and tables from one pc ant=d the startup loaded the application and it ran.
I deployed it to a family's pc. it loads .
the macro looks for a file and if it cant find it asks for the file with the table.
IT finds it and loads some tables.
In the macro I have a test for the startup application title
Condition Action
[CurrentDb].[Properties](" AppTitle") ="EULA Agreement" OpenForm
This works on all my pc's.
On my family's pc , which has never run the app before, and on a friemds pc I get the error
EULA Agreement can't find the name 'CurrentDb' you entered in the expression.
You may have specified a control that wasn't on the current object without specifying the current form or report control.
I set the flag in the Startup screen application name then change it when the EULA is read.
Even if I change it manually to skip the agreement form it still gives me the message except now it has the application name instead of EULA Agreement.
SO I am thinking that it is the reference to DBCurrent in the macro. How can I read the application name without using DBcurrent?
I tried DBEngine(0)(0).Properties( "AppTitle" ) = "EULA Agreement" but the macro says it can't parse the expression
I used [DBEngine].[Workspaces](0) .[Database s](0).[Pro perties](" AppTitle") = &
And I get the Error.
Can't find the name ' DBEngine ' you entered in the expression.
Now what???
Don
I have an application I am trying to deploy,
I have created a startup script to load the compiled MDE Access application, Access runtime and the tables.
I have run the startup on three of my computers and it loads and runs.
I have deleted the application and tables from one pc ant=d the startup loaded the application and it ran.
I deployed it to a family's pc. it loads .
the macro looks for a file and if it cant find it asks for the file with the table.
IT finds it and loads some tables.
In the macro I have a test for the startup application title
Condition Action
[CurrentDb].[Properties]("
This works on all my pc's.
On my family's pc , which has never run the app before, and on a friemds pc I get the error
EULA Agreement can't find the name 'CurrentDb' you entered in the expression.
You may have specified a control that wasn't on the current object without specifying the current form or report control.
I set the flag in the Startup screen application name then change it when the EULA is read.
Even if I change it manually to skip the agreement form it still gives me the message except now it has the application name instead of EULA Agreement.
SO I am thinking that it is the reference to DBCurrent in the macro. How can I read the application name without using DBcurrent?
I tried DBEngine(0)(0).Properties(
I used [DBEngine].[Workspaces](0)
And I get the Error.
Can't find the name ' DBEngine ' you entered in the expression.
Now what???
Don
also check in the references if you have MISSING: reference name
possibly a DAO version
possibly a DAO version
ASKER
Answers to all 3 in access 2000
? [CurrentDb].[Properties](" AppTitle")
RFP Manager
? [DBEngine].[Workspaces](0) .[Database s](0).[Pro perties](" AppTitle")
RFP Manager
? currentdb.properties("Appt itle")
RFP Manager
This is a compiled app ----> mde
Included is access runtime which loads in the startup script.
A copy of the startup is in http://www.orbitfiles.com/ user name is the same as mine here
Password for this file is vader file size is 99 MB.
App is in Beta testing and is time dependent will not work after 2/1/08
Don
? [CurrentDb].[Properties]("
RFP Manager
? [DBEngine].[Workspaces](0)
RFP Manager
? currentdb.properties("Appt
RFP Manager
This is a compiled app ----> mde
Included is access runtime which loads in the startup script.
A copy of the startup is in http://www.orbitfiles.com/ user name is the same as mine here
Password for this file is vader file size is 99 MB.
App is in Beta testing and is time dependent will not work after 2/1/08
Don
ASKER
No missing references I have looked.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
Vee_Mod
Community Support Moderator
?currentdb.properties("App
see what is the returned value