Hello Everyone,
First post, so please be gentle
A quick introduction - I am Group Maintenance Manager for a circuit board manufacturer. I have been building a database from scratch for the last year now. This database records all maintenance activity, expenditure, PAT testing, and most recently a preventative maintenance form.
The database has been split, the back end on a server at one facility, the front ends on 5 PCs at 3 different sites, and on my laptop. Back-end is secure - front-ends are secure (log-in page, minimal interaction with software, and bypass key inactive unless I log in using my password etc.).
Upon login, the user is presented with the switchboard that allows them to select which site they are at, then the appropriate tabbed form opens, a tab for each of the above (activity, expenditure, PAT test etc).
Each of the forms allows the user to enter data, but each also has various cmd buttons, so they can for example search for what is due in each month for PAT test, or see how many man hours were spent on each machine, which machine was the most expensive etc.
The newest form is the Preventative maintenance form. This is non editable by the user - each machine has its own record, a hyperlink to the check sheet that they print off, and a 'Whats Due' button (asks for mm/yyyy) and a 'Whats Overdue' button.
Bear with me, nearly there ...
The actual activity data is entered into the Maintenance Activity Form - when Preventative maintenance is selected from combo box, some hidden fields appear, where the user enters "Date of Service" - this then autofills a "Next Service Due" field with same date, then a "Frequency of Service" combo box is used to select weekly, monthly, quarterly etc. Upon selection, the "Next Service Date" auto adds that time period to date.
So, when the user selects "Whats Due" on Preventative Maintenance Form, the query is looking at this date, and lists.
So, here comes my issue - all historical MRFS will appear in "Whats Overdue", because there is data in the "Next Service Due" field. This can be overcome by the User just going back to that record and deleting date from that field, but I was hoping for an easier way, working as follows ....
On the Preventative maintenance Form, I have a "reset" cmd button - when the User clicks it, parameter box asks for "MRF Number" (Maintenance Request Form - primary Key for Activity Form) - User enters this number, Access goes to that Record, and deletes the date from "Next Service Due" field, thereby removing that historical activity from query results.
So, is this possible - I am expecting some complicated VBA or Macro?
I have no formal training with Access, I learnt how to split database and secure from Steve Bishops videos on Youtube - worked wonders for me.
Apologies for long read, and I hope I explained things ok.
Good to meet you all,
Rek