i have following table in access and i want that when the user click on the next record it should show the max value of digital_num based on the type for example:
when the form show the column type = "Petrol" another textbox that i added in the name of "text14" which has dlookup with max function it should show the value 200 in there not the 100 because i added max function.
ID Type Digital_Num
1 Petrol 100
2 Gas 50
3 Supper 150
4 Petrol 200
5 Gas 50
6 Supper 200
i added a textbox in the form in the name of "text14" besides the textboxes which automatically created for ID, Type, Digital_Num.
and i added the below Dlookup code to its control source
=DLookUp(Max("[Digital_Num]"),"table","[type] =" & '[Form].[type]')
when i switch my form to layout view it keeps showing 200 number in the text14 textbox which is the maximum value in the table it does not change even i press the next record
however it should show the max value of that type based when i click on the next record.
