B
Brian G via AccessMonster.com
Hi all, hopefully someone can help me....
This code poops out at
db.Properties("AppIcon") = strFile
and gives me a runtime 3270 error Property not found
there is definitely a value being passed (strFile = "C:\dbBuild\myicon.ico")
-------------
DoCmd.Maximize
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
Dim stDocName As String
Dim stLinkCriteria As String
Dim db As DAO.Database
Dim strFile As String
Dim strDbFile As String
Dim strDbPath As String
'Get the path of the database
Set db = DBEngine(0)(0)
strDbPath = db.Name
strDbFile = Dir(strDbPath)
strDbDir = Left(strDbPath, Len(strDbPath) - Len(strDbFile))
strFile = strDbDir & "VP.ico"
'Check the icon file exists.
If Len(Dir$(strFile)) > 0 Then
db.Properties("AppIcon") = strFile
Application.RefreshTitleBar
End If
Set db = Nothing
This code poops out at
db.Properties("AppIcon") = strFile
and gives me a runtime 3270 error Property not found
there is definitely a value being passed (strFile = "C:\dbBuild\myicon.ico")
-------------
DoCmd.Maximize
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
Dim stDocName As String
Dim stLinkCriteria As String
Dim db As DAO.Database
Dim strFile As String
Dim strDbFile As String
Dim strDbPath As String
'Get the path of the database
Set db = DBEngine(0)(0)
strDbPath = db.Name
strDbFile = Dir(strDbPath)
strDbDir = Left(strDbPath, Len(strDbPath) - Len(strDbFile))
strFile = strDbDir & "VP.ico"
'Check the icon file exists.
If Len(Dir$(strFile)) > 0 Then
db.Properties("AppIcon") = strFile
Application.RefreshTitleBar
End If
Set db = Nothing