Hi all,
keep trying on the dlookup but can't get the results... searching on forums still couldn't solve, hope experts here could help me. thanks in advance
i have a table call loading table
ID NoOfYear Loading 1 6 0.00% 2 10 15.00% 3 11 20.00%
while a form data entry, which have [CurrentDate],[YearOfMake],[MotorAge] and [Loading] where [loading] need to lookup from loading table
with criteria motor age determine the loading percentage
Private Sub YearOfMake_AfterUpdate()
Me.MotorAge.Value = Year([CurrentDate]) - [YearOfMake]
Me.Loading.Value = DLookup("[loading]", "loading", "[noofyear]>" & Me.MotorAge & " and [noofyear]<=" & Me.MotorAge & "")
End Sub