要先定义这个函数
Function Changeproperty(Strpropname As String, Varproptype As Variant, Varpropvalue As Variant) As Integer
Dim Dbs As Database, Prp As Property
Const Conpropnotfounderror = 3270 '属性没有找到的错误常量
Set Dbs = CurrentDb
On Error GoTo Change_Err
Dbs.Properties(Strpropname) = Varpropvalue
Changeproperty = True
Public Sub SetAppTitle(strTitle As String)
CurrentProject.Properties.Add "AppTitle", strTitle
CurrentProject.Properties.Add "AppIcon", CurrentProject.Path & "\AppIcon.ico"
Application.RefreshTitleBar
End Sub
说明:strTitle是标题,这个办法可以同时修改图标与标题
3、在登录\启动窗体中call这个过程