Hi all, I've got a parameter query that works fine, I just don't know how to display the result table.
It's set up in DAO right now but it is not required to stay that way.
This is the query and it gets in to memory just fines.
Set qd = dbs.QueryDefs!queryArchive2
qd.Parameters![Dept] = myDept
qd.Parameters![Type] = myTruckType
qd.Parameters![#Start#] = myStartDate
qd.Parameters![#End#] = myEndDate
Set rst = qd.OpenRecordset
Is there something like rst.show or rst.display??
I wouldn't mind using DoCmd.OpenQuery if I can pass in the parameters.... any other suggestions for getting the parameters into the query and showing it in code would be fine.
Thanks all
PB
It's set up in DAO right now but it is not required to stay that way.
This is the query and it gets in to memory just fines.
Set qd = dbs.QueryDefs!queryArchive2
qd.Parameters![Dept] = myDept
qd.Parameters![Type] = myTruckType
qd.Parameters![#Start#] = myStartDate
qd.Parameters![#End#] = myEndDate
Set rst = qd.OpenRecordset
Is there something like rst.show or rst.display??
I wouldn't mind using DoCmd.OpenQuery if I can pass in the parameters.... any other suggestions for getting the parameters into the query and showing it in code would be fine.
Thanks all
PB