If only data type matters, then using a prompt in a query is fine but if you need actual validation, it is far better to use a control on a form and reference that control form the query. We don't open queries for users to interact with so I'm assuming the query is either the RecordSource of a form or report or is being exported to Excel or a text file.