you can use query as recordsource like the same with tables. put the query name in the RECORDSOURCE property of the form and assign each control (textbox,...) the ControlSource (fields,...) of your query.
if you're doing it in code, say on Form_Open(), you can assign it like this...