Sub ChangeTitle()
Dim obj As Object
Dim Dbs As Database
Const conPropNotFoundError = 3270
On Error GoTo ErrorHandler
' Return Database object variable pointing to
' the current database.
Set Dbs = CurrentDb
' Change title bar.
Dbs.Properties!AppTitle = "Contacts Database"
' Update title bar on screen.
Application.RefreshTitleBar
Exit Sub
ErrorHandler:
If Err.Number = conPropNotFoundError Then
Set obj = Dbs.CreateProperty("AppTitle", dbText, "Contacts Database")
Dbs.Properties.Append obj
Else
MsgBox "Error: " & Err.Number & vbCrLf & Err.Description
End If
Resume Next
End Sub
Private Sub Form_Load()
ChangeTitle
End Sub
الحكم بعد التجربة
ضع المجلد على D
ChIco.rar