Hello,
I have a project tracking database. Project Managers update their projects on the table via a form. Once the project is closed I have a button on the form to delete the project from the "active project table".
I already have an append query that brings the record to the history table, so i'm not worried about deleting the record from the active project table.
I want to write VBA for the button into the "on click" event to only delete if certain fields equal a value, and if not spit out an error telling the Project Manager they need to fill out those fields before they can close the project.
Me.Proj_Status = "Closed"
Me.Proj_Phase = "Closure"
Me.Act_Finish_Date = any date(just needs to have a date)
Thoughts??
I have a project tracking database. Project Managers update their projects on the table via a form. Once the project is closed I have a button on the form to delete the project from the "active project table".
I already have an append query that brings the record to the history table, so i'm not worried about deleting the record from the active project table.
I want to write VBA for the button into the "on click" event to only delete if certain fields equal a value, and if not spit out an error telling the Project Manager they need to fill out those fields before they can close the project.
Me.Proj_Status = "Closed"
Me.Proj_Phase = "Closure"
Me.Act_Finish_Date = any date(just needs to have a date)
Thoughts??