I don't know your data structure so I used a field name commonly found in tables as a unique identifier. Access Help has info on domain aggregate functions (DLookup, DSum, DAvg, etc).
InputBox has only one button - OK.
MsgBox can have various combinations of boxes.
You will get more info from VBA Help on InputBox and MsgBox syntax.