mostly, I will want to do this on a Form and use the Form's textbox as criteria,
but for query, you add Parameter to it so it will prompt you.
if nothing is inputted use the max value of the field.
this query will prompt for the Inspection Number or non is inputted, the max will return:
Code:
SELECT InspectionTable.Insp_Num, InspectionTable.Insp_Date, InspectionTable.Name, InspectionTable.Address
FROM InspectionTable
WHERE InspectionTable.Insp_Num=IIf(IsNull([Enter Inspection Number]),DMax("Insp_Num","InspectionTable"),[Enter Inspection Number]);