I am using access as a custom estimating program and all projects are named. this is done by selecting the "new" button DoCmd.GoToRecord , , acNewRec
Forms![JOBMASTER]![JOBNAME] = "** New Job **"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Forms![JOBMASTER]![TAKEOFF]![TAKEOFFID] = DMax("[TAKEOFFID]", "TAKEOFF", "[JOBID]" + 1
Forms![JOBMASTER]![TAKEOFF]![qryJOBCASE subform]![JOBCASENO] = DMax("[JOBCASENO]", "JOBCASE", "[JOBID] = " & JOBID) + 1
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Forms![JOBMASTER]![JOBNAME].SetFocus
this is the identifier for the project(they replace the **New Job** with a project name) but sometimes my estimators mistakenly type in a new name in and it screws everything up. I want to find some code to warn them they are changing the name. Can anyone help?
Forms![JOBMASTER]![JOBNAME] = "** New Job **"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Forms![JOBMASTER]![TAKEOFF]![TAKEOFFID] = DMax("[TAKEOFFID]", "TAKEOFF", "[JOBID]" + 1
Forms![JOBMASTER]![TAKEOFF]![qryJOBCASE subform]![JOBCASENO] = DMax("[JOBCASENO]", "JOBCASE", "[JOBID] = " & JOBID) + 1
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Forms![JOBMASTER]![JOBNAME].SetFocus
this is the identifier for the project(they replace the **New Job** with a project name) but sometimes my estimators mistakenly type in a new name in and it screws everything up. I want to find some code to warn them they are changing the name. Can anyone help?