Guest_imported
New member
- Jan 1, 1970
- 0
Need to create filter for recordset used in DTC Drop-down.
Currently, my drop-down box contains values from rsName (DTC control)
I need to filter on rsName where Name = strName
StrName is a session variable set after user logs on.
I tried using the following code, but it just pulls up rsName without the filter:
strName= Session("Name"
If rsName.isOpen() then rsName.close sql = "select * from Myrecordset Where Name= '" & strName & "'" & _
"ORDER BY rsName.tblNALC" rsName.setSQLText(sql)
rsName.open
I tried placing this code in the Sub thisPage_onenter() event. I also tried placing the code in <% tags and placing it right after the <body> tag.
I know I’m getting the correct value for strName (already tested). I also know that it sees that correct record count for rsName after the code for the filter runs(already tested)…it just doesn’t show up in my drop-down.
Any help is really appreciated.
Thanks,
Anna