from Access Help Example:
'******************************************
Dim Message, Title, Default, MyValue
Message = "Enter a value between 1 and 3"
Title = "InputBox Demo" ' Set title.
Default = "1" ' Set default.
' Display message, title, and default value.
MyValue = InputBox(Message, Title, Default)
The variable MyValue contains the value entered by the
user if the user clicks OK or presses the ENTER key . If
the user clicks Cancel, a zero-length string is returned.
'********************************************
So, the answer you seek is this:
Use a Dim statement to declare a Variant variable.
Use this variant to capture the value of the input.
Then check/trap on the result (looking for a zero-length
string):
MyValue = InputBox(Message, Title, Default)
If MyValue = "" Then 'Cancel was selected