C
Confused Pete
Guest
I'm trying to get a Gantt chart like report to generate from a query. So far I've used the code and help from these forums to show my report OK.
Now, I want to improve my query, so that it selects results. I can do this in the query with a parameter.
Unfortunatley, the gannt chart code uses an OpenRecordSet statement. Is it possible to modify the code to accept a query parameter? (I've tried to follow the suggestions given in these forums and it doesn't seem to work - for me!)
The code in question is:
Set rs = db.OpenRecordset("SELECT Min([Start Date]) AS MinOfStartDate " _
& " FROM qryPM1AssetPlannedLife", dbOpenSnapshot)
Has anyone got any suggestions as to how to try and resolve this issue?
Is it feasible?
Thanks!
Now, I want to improve my query, so that it selects results. I can do this in the query with a parameter.
Unfortunatley, the gannt chart code uses an OpenRecordSet statement. Is it possible to modify the code to accept a query parameter? (I've tried to follow the suggestions given in these forums and it doesn't seem to work - for me!)
The code in question is:
Set rs = db.OpenRecordset("SELECT Min([Start Date]) AS MinOfStartDate " _
& " FROM qryPM1AssetPlannedLife", dbOpenSnapshot)
Has anyone got any suggestions as to how to try and resolve this issue?
Is it feasible?
Thanks!