423,491 Members | 2,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,491 IT Pros & Developers. It's quick & easy.

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

P: 2
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.

Share this Question
Share on Google+
2 Replies


jforbes
Expert 100+
P: 1,107
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
Expert Mod 15k+
P: 31,037
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.