gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I am trying to open my database on a different PC and I am getting these error messages. I don't get them on mine (we are using the same versions of Access).
"Your Microsoft Access database or project contains a missing or broken reference to the file "MSCOMCTL.OCX" version 2.2.
Then a another message "Microsoft Access cannot run the macro or callback function "GetVisible".
I get a compile error
The Line "Public Sub CloseThisForm (vstr as Form)' is highlighted in yellow
Anyone know whats going on?
"Your Microsoft Access database or project contains a missing or broken reference to the file "MSCOMCTL.OCX" version 2.2.
Then a another message "Microsoft Access cannot run the macro or callback function "GetVisible".
I get a compile error
The Line "Public Sub CloseThisForm (vstr as Form)' is highlighted in yellow
Code:
Public Sub CloseThisForm(vstr As Form)
'+=============================================================+
' Copyright by Paul Goldbeck. All Rights Reserved.
'Created: 23.03.98
'Last change: 23.03.98
'+=============================================================+
On Error GoTo CloseThisFormError
DoCmd.Close A_FORM, CStr(vstr.Name)
CloseThisFormDone:
Exit Sub
CloseThisFormError:
DisplayError Err, Error$, "Fnc::CloseThisForm()"
Resume CloseThisFormDone
End Sub
It also highlights "Error$"
Anyone know whats going on?