HOW do I assign the result from a query to a variable in LO Base?

THANK YOU VERY MUCH Ratslinger for your assistance in my project. You’ve taught me much and your patience with my inexperience is award winning. I’d love to buy you a beverage someday. CHEERS!!