Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where to find the Icon path as specified in the Startup form

19 views
Skip to first unread message

Simon

unread,
Nov 10, 2009, 12:10:28 AM11/10/09
to
Dear reader,

In the Startup form you have the possibility to Browse to an application
Icon.

In case you runs the program always on the same location this Icon location
is working.

But if you copy the application to an alien PC the path to the Icon is not
longer valid.

Is there someone who knows where this path is stored in the mdb? So you can
make it flexible for the user to browse to the Icon folder if the Icon is
missing.

Kind regards,

Simon


Allen Browne

unread,
Nov 10, 2009, 2:59:54 AM11/10/09
to
If you have specified an icon path, it is:
Currentdb.Properties("AppIcon")

If you have not specified one, the property won't exist. You can create it
like this:
Dim prp As DAO.Property
Set prp = db.CreateProperty("AppIcon", dbText, strIconFile)
db.Properties.Append prp

Assumes strIconFile contains the fully qualified file name.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Simon" <SvanB...@Versatel.nl> wrote in message
news:4af8f5c5$0$23838$bf49...@news.tele2.nl...

0 new messages