Hi currently i have a table for which i assigned an engineer a vehicle, what i want is a way of not being able to assign a tech a vehicle that is already assigned
field names
Tech_Vehicle_ID
Date_Assigned_To_Tech
Date_Returned
Vehicle_Reg
Assigned_To_Tech
so if the date_returned was blank then that means its still assigned to a tech so you would not be able to use that vehicle reg untill it has been returned by the tech, this is entered by a form, what the ideal solution would be is when you enter a reg that is already assigned i want a message box, stating that this is with another tech and then that record to automatically pop up for you to unassign it (by entering a Date_Returned.
what i want to do is enter the information then when i try to add that record the macro would come in with beforeupdate, then it would search my tech_vehicle table for that reg and see if it appears anywhere with the Date_Returned field blank and if it does open that record so the user could then unassigned the vehicle before continuing with his data entry.
im using access 2010 with the macro builder but still getting a bit confused
field names
Tech_Vehicle_ID
Date_Assigned_To_Tech
Date_Returned
Vehicle_Reg
Assigned_To_Tech
so if the date_returned was blank then that means its still assigned to a tech so you would not be able to use that vehicle reg untill it has been returned by the tech, this is entered by a form, what the ideal solution would be is when you enter a reg that is already assigned i want a message box, stating that this is with another tech and then that record to automatically pop up for you to unassign it (by entering a Date_Returned.
what i want to do is enter the information then when i try to add that record the macro would come in with beforeupdate, then it would search my tech_vehicle table for that reg and see if it appears anywhere with the Date_Returned field blank and if it does open that record so the user could then unassigned the vehicle before continuing with his data entry.
im using access 2010 with the macro builder but still getting a bit confused