Our department users an MS Access database file created in an old version of access. The purpose is to maintain records of what access our IT users have to our systems.
Since upgrading to Access 2010 I have been getting a "Property not found" error upon using the existing Save button on multiple forms. The error occurs only when data in the record has changed. Converting the old .mdb file to .accdb format hasn't solved the issue.
The Save buttons have "On Click" event procedures associated with them.
The first one is as follows:
The other one I am having issues with is this, on a different form:
I have no idea where to even start with figuring it out as the error doesn't even try to take me into Debug mode - it's a very unhelpful error with an "OK" button and nothing more!
Any ideas?
Since upgrading to Access 2010 I have been getting a "Property not found" error upon using the existing Save button on multiple forms. The error occurs only when data in the record has changed. Converting the old .mdb file to .accdb format hasn't solved the issue.
The Save buttons have "On Click" event procedures associated with them.
The first one is as follows:
Code:
Private Sub cmd_save_Click()
On Error GoTo Err_cmd_save_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Me!txt_existing_zam.Value = ""
Set qresults = CurrentDb.OpenRecordset("select * from qry_zam_function_set")
Do While Not qresults.EOF
zam_access_level = Forms!frm_get_uid.Controls(qresults.Fields(1)).Value
If IsNull(zam_access_level) Then
Else
zam_function = qresults.Fields(0)
'MsgBox zam_function
'MsgBox zam_access_level
Forms!frm_get_uid.[txt_existing_zam].Value = Forms!frm_get_uid.[txt_existing_zam].Value & zam_function & "\" & zam_access_level & " "
End If
qresults.MoveNext
Loop
qresults.Close
Forms!frm_new_user.Requery
Exit_cmd_save_Click:
Exit Sub
Err_cmd_save_Click:
MsgBox Err.Description
Resume Exit_cmd_save_Click
End Sub
The other one I am having issues with is this, on a different form:
Code:
Private Sub cmd_save_Click()
On Error GoTo Err_cmd_save_Click
If IsNull(created_by) Or created_by = "" Then
created_by.Value = Environ("username")
End If
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
uidstring = uidstring & Forms![frm_new_user]![HRI_UID_PC] & Forms![frm_new_user]![CHH_UID_PC]
uidstring = uidstring & Forms![frm_new_user]![PRH_UID_PC] & Forms![frm_new_user]![BWH_UID_PC]
uidstring = uidstring & Forms![frm_new_user]![WAC_UID_PC] & Forms![frm_new_user]![ABH_UID_PC]
uidstring = uidstring & Forms![frm_new_user]![BSHC_UID_PC] & Forms![frm_new_user]![FREE_UID_PC]
uidstring = uidstring & Forms![frm_new_user]![BUPA_UID_PC] & Forms![frm_new_user]![NUFF_UID_PC]
uidstring = uidstring & Forms![frm_new_user]![HCH_UID_PC] & Forms![frm_new_user]![WTH_UID_PC]
uidstring = uidstring & Forms![frm_new_user]![BDH_UID_PC] & Forms![frm_new_user]![SGH_UID_PC]
uidstring = uidstring & Forms![frm_new_user]![HRIAE_UID]
Exit_cmd_save_Click:
Exit Sub
Err_cmd_save_Click:
MsgBox Err.Description
Resume Exit_cmd_save_Click
End Sub
I have no idea where to even start with figuring it out as the error doesn't even try to take me into Debug mode - it's a very unhelpful error with an "OK" button and nothing more!
Any ideas?
