Your naming convention is very poor. Object names should only be letters, numbers and maybe the underscore. NO spaces, punctuation or special characters
Examples:
Table name "Data_Vehicle(s)" has parenthesis
Field name "[Data_Invoice#]" has special character
Field name "[Data_Km's]" has apostrophe
Field name "[Data_Diff/TC Oil]" has space and slash
Code:
=IIf([Data_Vehicle(s) Query]![UN_Unit]=[Form_Data_Unit],[Data_Vehicle(s) Query]![Max Of Data_Km's],"")
=IF( condition, Value if TRUE, Value if FALSE)
Condition: [Data_Vehicle(s) Query]![UN_Unit]=[Form_Data_Unit], <<-What is [Form_Data_Unit]? Do you have a control named "[Form_Data_Unit]"?
Value if TRUE:[Data_Vehicle(s) Query]![Max Of Data_Km's] <<- as noted, can't refer to table/query data this way.
Value if FALSE: ""
In any case, formula probably won't return what you want.
As much as I try not to use aggregate functions, in this case you probably should use the DMax() function.
The picture in post #3 concerns me. It shows that the PK field "Un_units.ID" (another poor field name) is related to the field "[Data_Vehicle(s)].Data_Unit".
Is "Un_units.ID" an Autonumber type field?
(I would have named the PK field "UnitID_PK" and the FK field "UnitID_FK". Easier to know what is the PK field and what are the FK fields)
-----------------
Not trying to burn you, but it is easier to create forms/queries/reports if there is a normalized table structure..
Just my $0.02.........good luck with your project.