I have the following string for which I create a querydef to be used in a report. Unfortunately I can't seem to make it sort by "autonumber". Although if I paste the sql statement into an access query design view, it works. Anyone got any idea?
SELECT * FROM [order details] WHERE [order number]" _
& "= " & [prompt_order_number] & "order by " & autonumber & ";"
Thanks.
"All is not as it seems"
SELECT * FROM [order details] WHERE [order number]" _
& "= " & [prompt_order_number] & "order by " & autonumber & ";"
Thanks.
"All is not as it seems"