I have an MS Access project which I am developing. Everything was good until I clicked the Compact and Repair Database, now every time my app hit line of code start from here Form_PersonalInfoPanel.cmboGender.Enabled = True
from this method:
Public Sub setEmployeeForms(flag As Integer)
If flag = 0 Then
...
Else
Form_EmployeePanel.txtFullName.Enabled = True
Form_EmployeePanel.txtFullNameAr.Enabled = True
Form_EmployeePanel.cmbPcn.Enabled = True
Form_EmployeePanel.cmboDepartment.Enabled = True
Form_EmployeePanel.cmboJob.Enabled = True
Form_PersonalInfoPanel.cmboGender.Enabled = True
Form_PersonalInfoPanel.cmboMaritalStatus.Enabled = True
Form_PersonalInfoPanel.cmboNationality.Enabled = True
Form_PersonalInfoPanel.txtDob.Enabled = True
Form_PersonalInfoPanel.txtEmail.Enabled = True
Form_PersonalInfoPanel.txtMobile.Enabled = True
End If
End Sub
It now giving me:
Run-Time error '7':
Out of Memory
In the Debug mode, it says: <Object variable or With block variable not set>
As for this one Form_EmployeePanel.cmboJob.Enabled = True
, it works fine. My project is only 3.476 MB and I already deleted all files in my temporary folder.
Any help is much appreciated.