I have tried something and it works.
first I wrote the first query (called q1):
SELECT voucher.ordernum, Min(voucher.vouchercode) AS Minimum
FROM voucher
GROUP BY voucher.ordernum;
And I used it in a second query:
SELECT DISTINCT q1.ordernum, q1.Minimum, voucher.vouchertype
FROM voucher...