I want my message box to pop up a message like "Your ticket number is 1001".

I know how to make a message box that says that exactly, but I want the value to be from an existing table. Is there a way to do that?

Thanks in advance