468,317 Members | 1,513 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,317 developers. It's quick & easy.

How to replace generic Access 2016 Icon with custom Icon in runtime

I have created Access 2016 Database with custom Icon. I canít figure out what I am doing wrong. Here is the problem: When I tested the database in my developing Computer, it opens with my custom Icon and everything is great as expected. But when I move it to another computer that does not have Access 2016 installed and run my Database in Run-time (Accde), everything work OK. But the only problem is that my Application custom Icon got replaced with Access GENERIC ICON in forms. I donít know why? However, the desktop shortcut Icon still show my database custom Icon. Can any body help me out.?
Dec 25 '16 #1

✓ answered by NeoPa

The icon should still be valid when run from other machines as long as each machine can see the icon file using the exact path as specified originally on your machine.

If it's on your C: drive then it's liable to fail when trying to load it from another machine.

2 1668
jforbes
1,107 Expert 1GB
This is the code I use to change the Icon. I don't remember writing it. It runs every time the DB is loaded:
Expand|Select|Wrap|Line Numbers
  1. CurrentDB.Properties("AppIcon").Value = "c:\SomeIcon.ICO"
  2. CurrentDB.Properties("UseAppIconForFrmRpt").Value = False
  3. Application.RefreshTitleBar
Dec 25 '16 #2
NeoPa
32,078 Expert Mod 16PB
The icon should still be valid when run from other machines as long as each machine can see the icon file using the exact path as specified originally on your machine.

If it's on your C: drive then it's liable to fail when trying to load it from another machine.
Jun 9 '18 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Bob Dydd | last post: by
2 posts views Thread by Carl Gilbert | last post: by
reply views Thread by =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?= | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.