prabhafriend
07-16-2014, 05:40 AM
I know we can make a criteria by getting a parameter but I need to give a default value on user's prefrence. Possible in a parameter query?
ranman256
07-16-2014, 10:10 AM
If you are using a saved query , change the [param] box in criteria to the users preference.
else
if you are using code, you must open the querydef, set the param to the preference, save.
vUserPrmSet = 8
set qdf = currentdb.querydefs("qsMyQry")
qdf.parameters("Month") = vUserPrmSet
qdf.close
set rst = qdf.openrecordset
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.