+ Reply to Thread
Results 1 to 10 of 10

Database for Vehicle Movement

  1. #1
    Registered User
    Join Date
    02-07-2016
    Location
    Dammam
    MS-Off Ver
    2010
    Posts
    34

    Database for Vehicle Movement

    Hey Friends,

    I am in charge of 150 vehicles in a company. i am maintaining the details of each vehicle in separate sheet. it is around 150 sheet. i am finding very difficult to maintain all vehicle in different sheet.

    The record of vehicles are described in attached file. It is like

    S/N Description Amount SR. Purchased by: Remarks

    is there any macro to enter and update such kind of data in the attached excel file.

    Thank in advance for help.

    regards.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Database for Vehicle Movement

    Personally, I think you are confusing data and presentation.

    If it were me, I’d have three sheets.

    1. Master sheet for vehicle details; registration (key field), make, model, colour, whatever ... all static details
    2. Transactions sheet to record details of repairs, maintenance, service, parts, etc., using the registration to link the details back to the master sheet
    3. A Summary sheet where you can enter the registration number and it will collate the details from the master record and the transactions. I'd probably use VBA to do that but you could probably do it with formulae.

    That structure would be much easier to maintain. And you can view and print a summary sheet for each vehicle as required.

    Just my thoughts.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: Database for Vehicle Movement

    This lends itself to data entry by using a UserForm approach.
    Two tables - one with actual vehicle reg details - one master table recording all actions/purchases.
    Far simpler to analyse than looking through 150 sheets.
    You can then produce individual reports with relative ease at the press of a button.
    Post back on this site if of interest and I will throw a quick demo together - just need 2 or 3 more vehicle details to be realistic.
    Upload a small typical file with the data desensitised.
    torachan.

  4. #4
    Registered User
    Join Date
    02-07-2016
    Location
    Dammam
    MS-Off Ver
    2010
    Posts
    34

    Re: Database for Vehicle Movement

    Thanks,

    The file i have attached now is have Data and Master sheet.

    The Data sheet has all details which need bring to ENTRY sheet for any update.

    Ans the new data entered in the ENTRY sheet will saved in Data sheet as new record.

    So any vehicle details i want Delete or Update should load in Entry through navigate option.

    Please help me to get this.

    Thanks.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-07-2016
    Location
    Dammam
    MS-Off Ver
    2010
    Posts
    34

    Re: Database for Vehicle Movement

    Yeah Bro! It can be maintain with formulae... however in this ENTRY sheet you enter details which would be saving in sheet DATA. so i can put formulae here. every vehicle may have different no of details.

  6. #6
    Registered User
    Join Date
    02-07-2016
    Location
    Dammam
    MS-Off Ver
    2010
    Posts
    34

    Re: Database for Vehicle Movement

    not actually from userform. this is like contexturers format. but i would like to get by VBA. I guess that is actual and suitable.

  7. #7
    Registered User
    Join Date
    02-07-2016
    Location
    Dammam
    MS-Off Ver
    2010
    Posts
    34

    Re: Database for Vehicle Movement

    hello,

    the file i attached is with Adding and Updating few record.

    Please Login or Register  to view this content.
    However i would like to add data in the description area also, row starting from 11 to 61. I need to edit and update those record in same cells, so formulae will not work.

    could you please help me. Thank you.

    Regards.
    Attached Files Attached Files

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: Database for Vehicle Movement

    Sorry got waylaid for a day or two, the on sheet approach is 'clunky' and the code does not lend itself to sort techniques that will be needed when your data has grown.
    Once you have several thousand enteries do you really want to use the technique of 'find first/find next/find prev/find last'
    Decide what your primary search keys would be e.g. vehicle reg - between dates - invoice numbers ????
    In the attached is the nature of form I would use, look in the listbox - just enter a random reference from the left column in the left find box to see the speed (there are 9000+ records).
    From experience I would not pursue the on sheet form.
    torachan.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-07-2016
    Location
    Dammam
    MS-Off Ver
    2010
    Posts
    34

    Re: Database for Vehicle Movement

    my primary search field will be "Vehi.:". Presently i don't required to search by invoice and date wise. Just by Vehi. reg. is enough.

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: Database for Vehicle Movement

    Give the attached a try as first attempt.
    Forms are on a multipage - first tab is the data entry - select vehicle from combobox dropdown.
    If you have multiple enteries for the same vehicle select multi option - this retains the vehicle details (lefthand four textboxes) - you cannot type in them.
    If you select single option the lefthand textboxes clear after you submit then allowing selection of another vehicle.
    Second page tab allows you to edit any entry by either 'find' or selection from listbox.
    Third tab is for entering default details for vehicles - to add a new vehicle first clear form by pressing 'NEW', then enter the details and press 'ADD', the rest should be intuitive.
    The forth tab enable a simple report to be created - select vehicle (have a USB memory stick in one of your drives) - report is saved and created as a PDF for printing.
    any queries post back on this site.
    torachan.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vehicle Time Table in Excel to Vehicle Movement Graph in Excel
    By Petrus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2019, 04:54 AM
  2. Index vehicle, driver and vehicle wise revenue report.
    By dackson in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 06-02-2017, 01:40 AM
  3. How do I create a vehicle database
    By T Macg in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-14-2014, 11:18 PM
  4. Replies: 2
    Last Post: 01-30-2013, 12:06 PM
  5. Vehicle Age
    By kingcal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2008, 06:17 PM
  6. Vehicle Age
    By Badvgood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2007, 01:20 AM
  7. Vehicle Age
    By chris2403 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-16-2007, 11:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1