I'm looking for some help. I'm new to coding and have started creating this Vehicle databaseVehicle database program in ExceulExcel for a friend to use.
He is wanting to be able to see all vehicles he owns, when registration is due as well as input any vehicle services that have been done.
- I have created a UserformUser form in Excel, one for adding a Vehicle and renewing Registration.
- This is working but I believe it isn't very efficient.
- Once I looked into it more and studied it more, I found that you shouldn't put information in the form as such andsuch; it is just a presenter and it should be read through modules and classes.
- I have tried doing this and I just get stuck and cantcan't do it or get it to work. is Is this required or anyis anything else in my coding to be fixed?
On the Vehicle form they fill out their Vehicle Details.
:
- They input TextBoxtext boxes (Date of purchase, Regonumber, Rego Expiry, Purchase Price, Kms at Purchase, The Vehiclethe VIN, Make, Model).
- ComboBox (Year of Vehicle, Colour of Vehicle, Type of Vehicle (Car, Light Rigid, Motorbike ect), Fuel Type (Unleaded Diesel ect), Premium Class (To do with our state registration), Transmission Type (Automatic, Manual), Usage Type Whether they use the Vehice for Private or Business)
If they input Purchase price at a date after today it pops up the Invalid date and makes the textbox red, If the Expiry Date is more that 4months ago the same thing happens. - choices (Year of Vehicle, Colour of Vehicle, Type of Vehicle (Car, Light Rigid, Motorbike etc.), Fuel Type (Unleaded Diesel etc.), Premium Class (to do with our state registration), Transmission Type (Automatic, Manual), Usage Type (whether they use the vehicle for Private or Business)
If they input Purchase price at a date after today it pops up an invalid date warning and makes the textbox red; if the Expiry Date is more than 4 months ago the same thing happens.
- The Purchase Date, (Rego, Expiry = IF- if the Unregistered button isntisn't ticked), Year, Make, Model, Vehicle Type, Transmission type and Usage is required to be filled out to submit the vehicle to the table.
- When they click Add it adds it to the Table and unloads. If they click cancelCancel, a messageboxmessage box pops up to confirm, if yes then it just unloads.
With the Registration Renewal form
:
- The ComboBox has the Vehicle registrations from the Vehicle table where the vehicle hasnthasn't been marked as disposed or unregistered and the Vehicle Expiry date is after Today-4Months and before Today+4Monthswithin 4 months of today.
- If they Select either Private or Business it clears all selections and populates the Registration Combobox with the Aboveabove conditions but also filters and only populates the vehicles relevant to the selection (Private or Business)
. - Once a vehicle has been selected then there isare 4 Label boxes under the Registration Combobox that populatespopulate the information from selected. (I will provide a photo of this). It also populates the Registration Expiry date and makes the Renewalrenewal period Optionsoptions appear (3Months3 Months, 6Months6 Months, 12Months12 Months)
. - Once one of the renewal periods are selected it populates the New Expiry date Label.
- You input the total. If you want to complete more renewals you select the More Renewals tick box.
- You then press add,Add; it inputs all the data in the Renewals Table as well as updateand updates the Expiry date in the Vehicles table.
- If the More Renewals box was ticked it returns the form in a cleared state to update another Registration Expiry otherwise it unloads.
- If you press cancel a warning pops up and if you press okokay it unloads.




