Others

Use Custom Vehicle Numbers in a Microsoft Access Maintenance Database

Khadija KhanKhadija Khan Nov 22, 2026 868 views

Question details

Use an organization's preassigned vehicle numbers in an Access maintenance database.

Use Custom Vehicle Numbers in a Microsoft Access Maintenance Database
Product
Microsoft Access
Device & OS
not provided
Scenario
A vehicle maintenance template needs to display and find vehicles by numbers such as 40 or 41.
Observed behavior
The template may identify records with an AutoNumber field or construct a vehicle name from multiple fields.
Before you start

Open the vehicle table in Design View and identify its AutoNumber primary key and any existing vehicle number or name field. Check how the vehicle form gets its data before changing a field or calculated control.

Solution 1Recommended

Add a separate field for custom vehicle numbers

Keep the existing AutoNumber key and store your organization's vehicle numbers in a dedicated field.

1
Add the field

In the Navigation Pane, right-click the vehicle table and select Design View. Add a field named VehicleNumber with the Short Text data type, or choose Number if the values are strictly numeric.

2
Set uniqueness if needed

Select the VehicleNumber field and, under Field Properties, set Indexed to Yes (No Duplicates) if each assigned number must be unique. Save the table.

3
Enter vehicle numbers

Open the vehicle table in Datasheet View and enter the assigned numbers, such as 40 and 41, in the VehicleNumber column. Leave the AutoNumber primary key unchanged.

4
Show the field on the form

Open the vehicle form in Design View and select Add Existing Fields. Drag VehicleNumber onto the form; if it is not listed, first add the field to the form's record-source query.

5
Update lookups

Open the relevant search query, macro, or VBA code in Design View and change the vehicle-number lookup to use VehicleNumber. Test the form by searching for an assigned number.

Add a separate field for custom vehicle numbers
Keep the primary key: The AutoNumber field identifies records and may be used in relationships. Your custom number is a separate business identifier.
Free Microsoft Office alternative

Track vehicle lists in WPS Spreadsheets

WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move spreadsheet-based vehicle lists. It does not modify or replace an Access database.

Maintain a vehicle list with custom number columns in WPS Spreadsheets.Open and edit Microsoft Excel XLSX files for easier migration.Use a familiar interface for everyday document and spreadsheet work.Work with a free, lightweight office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Should I change the AutoNumber field to start at 40?

Keep the AutoNumber primary key unchanged, because it may be used to identify related records. Add a separate VehicleNumber field in the vehicle table's Design View for your assigned numbers.

Should the vehicle number be text or numeric?

Choose Short Text in table Design View if numbers may contain leading zeros, letters, or hyphens. Choose Number if the values are strictly numeric and you need numeric operations.

How can I prevent duplicate vehicle numbers?

In the vehicle table's Design View, select VehicleNumber and set its Indexed property to Yes (No Duplicates). Resolve any existing duplicate values before saving that setting.

Why can't I see VehicleNumber in Add Existing Fields?

The form's record source may be a query that does not include the new field. Open the record-source query in Design View, add VehicleNumber from the vehicle table, save the query, and reopen the form in Design View.

What if the vehicle name is calculated from several fields?

Inspect the vehicle-name control's Control Source in the form's Property Sheet. Edit that expression or its underlying query to include VehicleNumber, or display the number in a separate control.