filtering the records in data access pages by code

filtering the records in data access pages by code

Post by TWFzb3V » Fri, 08 Feb 2008 18:10:02


Hello

in my data Access page there is one button that navigate to other data
access page.and I
have used BeforeInitialBind event for that page to filter the recordset as
follows.but
it does not work and no records will be available in my page.
please help me what I have to do?

<SCRIPT language=vbscript event=BeforeInitialBind(dscEventInfo) for=MSODSC>
<!--

Dim varWhere

varWhere=Document.cookie

MSODSC.RecordsetDefs("qryDocumentsSummary").ServerFilter=varWhere
-->
</SCRIPT>
thanks.