Setting Application Icon Problems

  • Thread starter EddyLLC via AccessMonster.com
  • Start date
E

EddyLLC via AccessMonster.com

I found some code that I thought should set the application icon in my
Access2003 database. When I run the code I am getting a Property Not Found
error. The function is run on the OnClose action of the splashscreen.
strDBPath is a variable I set to the location of the backend.

Can anybody see my error? Thanks.

Public Function AssignIcon()
Dim db As Database
Dim strIconPath As String

Set db = CurrentDb
strIconPath = strDBPath & "Icon1.ico"
db.Properties("AppIcon").Value = strIconPath
Application.RefreshTitleBar

End Function
 
A

Allen Browne

If you have never had an icon in your database, you will need to
CreateProperty().
 

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

Top