J
Joseph Misko
How do I get the text that I entered in the "Application Title" field under
Startup options?
Thanks,
Joe
Startup options?
Thanks,
Joe
Graham Mandeno said:Hi Joe
It is stored in a property of the database object named "AppTitle", so the
following expression will return it:
CurrentDb.Properties("AppTitle")
If you have not set that option, then the property will not exist and the
expression above will raise an error (3270 - property not found) which you
can trap.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Joseph Misko said:How do I get the text that I entered in the "Application Title" field
under Startup options?
Thanks,
Joe
Joseph Misko said:Many thanks. I forgot to mention one caveat. My entire application makes
no explicit or implicit reference to DAO. If I use CurrentDb, the Access
help file states that this "adds a hidden reference to the DAO 3.6 Object
Library" which I was hoping to avoid. Is there any other method? If not,
I will go with it.
Thanks,
Joe
Graham Mandeno said:Hi Joe
It is stored in a property of the database object named "AppTitle", so
the following expression will return it:
CurrentDb.Properties("AppTitle")
If you have not set that option, then the property will not exist and the
expression above will raise an error (3270 - property not found) which
you can trap.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Joseph Misko said:How do I get the text that I entered in the "Application Title" field
under Startup options?
Thanks,
Joe
Graham Mandeno said:Hi Joseph
If this is an ADP then I think you use CurrentProject instead:
CurrentProject.Properties("AppTitle")
However, this does not work in an MDB/MDE. I can't see why you would want
an MDB/MDE without a reference to DAO, because that is the native object
model.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Joseph Misko said:Many thanks. I forgot to mention one caveat. My entire application
makes no explicit or implicit reference to DAO. If I use CurrentDb, the
Access help file states that this "adds a hidden reference to the DAO 3.6
Object Library" which I was hoping to avoid. Is there any other method?
If not, I will go with it.
Thanks,
Joe
Graham Mandeno said:Hi Joe
It is stored in a property of the database object named "AppTitle", so
the following expression will return it:
CurrentDb.Properties("AppTitle")
If you have not set that option, then the property will not exist and
the expression above will raise an error (3270 - property not found)
which you can trap.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
How do I get the text that I entered in the "Application Title" field
under Startup options?
Thanks,
Joe
Anthony Bollinger said:Good question. I eliminated all references to DAO and have used ADO, but
since my interface and tables are all Access MDB it raises the question of
whether ADO is better or newer or whether DAO is the way to go. Any
input?
Thanks!
Graham Mandeno said:Hi Joseph
If this is an ADP then I think you use CurrentProject instead:
CurrentProject.Properties("AppTitle")
However, this does not work in an MDB/MDE. I can't see why you would
want an MDB/MDE without a reference to DAO, because that is the native
object model.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Joseph Misko said:Many thanks. I forgot to mention one caveat. My entire application
makes no explicit or implicit reference to DAO. If I use CurrentDb, the
Access help file states that this "adds a hidden reference to the DAO
3.6 Object Library" which I was hoping to avoid. Is there any other
method? If not, I will go with it.
Thanks,
Joe
Hi Joe
It is stored in a property of the database object named "AppTitle", so
the following expression will return it:
CurrentDb.Properties("AppTitle")
If you have not set that option, then the property will not exist and
the expression above will raise an error (3270 - property not found)
which you can trap.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
How do I get the text that I entered in the "Application Title" field
under Startup options?
Thanks,
Joe