Thanks Ken,
I feel like I'm almost there. I've changed my query system so that the DAP
is based off of "HistoryQuery" and can also pass the parameter to that same
query. My pop-up thing works, I just keep running into the same problem.
When I try running the DAP, it gives me "Data provider failed while executing
a provider command." and then "Data type mismatch in criteria expression."
I've narrowed the problem down to this script:
<SCRIPT language=vbscript event=BeforeInitialBind(dscei) for=MSODSC>
<!--
dim EmployeeID
EmployeeID = window.dialogarguments
MsgBox EmployeeID
MSODSC.RecordsetDefs("HistoryQuery").serverfilter = "EmpID = " & EmployeeID
-->
</SCRIPT>
The MsgBox gives me the correct employee ID, so that means up until the
serverfilter thing everything works...I think. Here is "HistoryQuery" that
this DAP is based on:
SELECT AdditionalQuery.Additional, DevActionQuery.DevAction,
FRFCompQuery.FRFComp, FRFJobQuery.FRFJob, FRFLeaderQuery.FRFLeader,
FRFOrgQuery.FRFOrg, FRFOtherQuery.FRFOther, FRFPressureQuery.FRFPressure,
PossibleQuery.Possible, ReadinessQuery.Readiness, TimeFrameQuery.TimeFrame,
UpdaterQuery.Updater, WillingQuery.Willing, EmployeeQuery.*,
UpdaterQuery.EntryDate, EmployeeQuery.EmployeeID AS EmpID
FROM AdditionalQuery, DevActionQuery, EmployeeQuery, FRFCompQuery,
FRFJobQuery, FRFLeaderQuery, FRFOrgQuery, FRFOtherQuery, FRFPressureQuery,
PossibleQuery, ReadinessQuery, TimeFrameQuery, UpdaterQuery, WillingQuery;
EmployeeQuery.EmployeeID is what I need to filter so I gave it a name, "EmpID"
Can you see what I'm doing wrong?
Thanks Again Ken,
Matt