A
Associates
Hi,
I wonder if i could get some help here with the following error message
Object doesn't support this property or method
I got this error when attempting to close a form in Access
Private Sub COM_CloseForm_Click()
On Error GoTo Err_COM_CloseForm_Click
DoCmd.Close
If Application.CurrentProject.AllForms("JobProposal List").IsLoaded Then
[Forms]![Job Proposal List]!LB_JobList.Refresh
End If
Exit_COM_CloseForm_Click:
Exit Sub
Err_COM_CloseForm_Click:
MsgBox Err.Description
Resume Exit_COM_CloseForm_Click
End Sub
I do not understand which object it is referring to. However, i have been
using this code in my previous Access database and it has always worked for
me. Could anyone show me the right way to do this?
Any help would be greatly appreciated.
Thank you in advance
I wonder if i could get some help here with the following error message
Object doesn't support this property or method
I got this error when attempting to close a form in Access
Private Sub COM_CloseForm_Click()
On Error GoTo Err_COM_CloseForm_Click
DoCmd.Close
If Application.CurrentProject.AllForms("JobProposal List").IsLoaded Then
[Forms]![Job Proposal List]!LB_JobList.Refresh
End If
Exit_COM_CloseForm_Click:
Exit Sub
Err_COM_CloseForm_Click:
MsgBox Err.Description
Resume Exit_COM_CloseForm_Click
End Sub
I do not understand which object it is referring to. However, i have been
using this code in my previous Access database and it has always worked for
me. Could anyone show me the right way to do this?
Any help would be greatly appreciated.
Thank you in advance