I guess you mean Suvarnabhumi main airport? If so you can get a re-entry permit
****
at the second escalator and also up by the security. Single 1000 baht, multiple 3800 baht. I you pay additional 200 baht they’ll fill out the form and take a picture of you as well.