Icon Flaw in access

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hello everyone,

I have created an application icon for my db but when I
package it up I find the destination machine always seems
to get the icon wrong.

The icon is always installed in the directory next to the
main db file.

CurrentProject.path

can I use this to set the path in code to get around this
flaw in access packaging?

Thanks

Tom
 
It gets it wrong because you haven't told Access where to find it. You need
to run code while your app is starting...

Dim db as database

Set db = currentdb()
db.Properties("AppIcon") = CurrentProject.Path & "\someicon.ico"
Application.RefreshTitleBar

You could also use SetOption.
 

Ask a Question

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.

Ask a Question

Back
Top