Dataa Access Pages

  • Thread starter mreynolds via AccessMonster.com
  • Start date
M

mreynolds via AccessMonster.com

I am using Access 2003 to build a Data Access Page. I wish to control the
number of records loaded initially by writing code into the BeforeInitialBInd
event on a Data Source Control object.

However the code does not work, because the event itslf does not seem to fire.
Even if I type msgbox "Hello" into the BeforeInitialBind event, the message
does not appear.

I understand all the coding required, but I cannot understand why the event
itself does not fire.
 
K

Ken Snell \(MVP\)

Did you put a variable in as the argument of the event procedure? VBScript
does not automatically put in the variable that is needed.

For example, in the code below, I have added the variable dsceventinfo as an
argument:

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

' programming code goes here

-->
</SCRIPT>



Also, does the DAP have a Recordset assigned to it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top