J
|
Jane 5/6/2009 |
Hi, where = "" str = "select dept_ID from Access where user_id=" & Session("user_id") Set rstmp = server.CreateObject("ADODB.Recordset") rstmp.open str,dbConnection while not rstmp.eof where = where & rstmp("dept_ID") & "," rstmp.movenext wend rstmp.close set rstmp=nothing where = Left(where, Len(where)-1) strWhereClause = whereAdd(strWhereClause,"id in (" & where & ")") |
W
|
wfcentral author 5/6/2009 |
Hi, you need to select dept_ID from Access table and use it in your where clause. Here is just a sample:
|
J
|
Jane 5/7/2009 |
Yes, use List page: Before SQL queryevent for this purpose. |
W
|
wfcentral author 5/7/2009 |
Yes, use List page: Before SQL queryevent for this purpose.
|
W
|
wfcentral author 5/7/2009 |
got it working now - thanks |