Results 1 to 6 of 6
  1. #1
    kellee is offline Novice
    Windows XP Access 2016
    Join Date
    Jul 2018
    Posts
    2

    Vehicle Maintenance - Vehicle name to Licence Plate

    Hi,
    I am using the pre-made Vehicle Maintenance Form on Access 2016 and need to change the Vehicle drop down from (year, make, model) to the Licence Plate as we have so many vehicles that are the same.


    Does anyone have any suggestions?
    Click image for larger version. 

Name:	accessforum.JPG 
Views:	27 
Size:	74.2 KB 
ID:	34732 Click image for larger version. 

Name:	Capture.JPG 
Views:	27 
Size:	39.5 KB 
ID:	34733

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    You'll need to change the Row Source property of the combo box which is usually a SELECT statement.
    If you post what you already have it will make it much easier to help
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    kellee,

    I agree with Bob --it will help you and readers if you post a copy of your database in zip format.
    I would suggest you do not use names with embedded spaces for fields or objects. It will lead to syntax errors.
    Good luck and welcome to the forum.

  4. #4
    kellee is offline Novice
    Windows XP Access 2016
    Join Date
    Jul 2018
    Posts
    2
    Thanks Bob, If I was to start from scratch with the pre-made template how would I do this?

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Quote Originally Posted by kellee View Post
    Thanks Bob, If I was to start from scratch with the pre-made template how would I do this?
    Start what from scratch?
    How would you do what?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    Find query "Vehicles Extended". Open in design view (you may have to drag the design grid portion up from the bottom to make it visible). Expand the left most field. You will see this expression

    Vehicle Name: [Year] & " " & [Make] & " " & [Model]

    You would need to change this 'calculated' (concatenated) field in the query itself. Another possibly more sensible approach would be to hide the existing control (in case you need it back later) and add one for the license number as there isn't one on the form. You would have to modify the query behind the form (Past Expenses) to include the license field.

    As for the spaces in names, what else do you expect from a Microsoft template except things that violate good design principles?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. MV Licence Plate - field
    By MSAnewbie in forum Access
    Replies: 10
    Last Post: 12-24-2015, 07:31 PM
  2. Vehicle Mileage Database
    By Mtyetti2 in forum Access
    Replies: 6
    Last Post: 10-07-2013, 01:50 PM
  3. vehicle fuel consuption
    By Daniel2000 in forum Queries
    Replies: 14
    Last Post: 08-30-2013, 06:05 AM
  4. Vehicle Mileage
    By Mtyetti2 in forum Forms
    Replies: 5
    Last Post: 02-16-2013, 08:23 AM
  5. Vehicle inventory/assignment
    By jzacharias in forum Database Design
    Replies: 2
    Last Post: 10-11-2012, 02:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums