G
George Hester
There seems to be only one event for a Navigaion control provided by the
Microsoft Office Web components. You can see it if you open a DAP in design
view and go to the Microsoft Script Editor. When the page comes up on the
left select Script Outline. Then find the Navigation Control under Client
Objects & Events which will be named something like TableNameNavigation.
Click the expand button + and you will see it has only one event called
ButtonClick. Well that's cool trouble is it does not work. Why?
Open a DAP in design view and in a script section of the page type the name
of the Navigation control TableNameNavigation say and then a tyoe a dot.
When you add the dot you will notice that there is only one event in the
list and it is NOT ButtonClick. It is called IsButtonEnabled. Well now.
So we have an event in the section of the Microsoft Script Editor, Objects &
Events which does not exist when you use the Microsoft Intellitype. I looked
in the knowledge base and found nothing about this discrepency. I suppose
there should be something there when the following script put in the page by
double-clicking the event ButtonClick in the Client Objects & Events section
of the Microsoft Script Editor for the Navigation control tblTest4Navigation
getting
<SCRIPT LANGUAGE=vbscript FOR=tblTest4Navigation EVENT=ButtonClick>
<!--
MsgBox "Hi"
-->
</SCRIPT>
doesn't work. I have only four buttons showing First Previous Next and Last.
I only tried Next button to test the above script.
Access 2000 SP1.
Microsoft Office Web components. You can see it if you open a DAP in design
view and go to the Microsoft Script Editor. When the page comes up on the
left select Script Outline. Then find the Navigation Control under Client
Objects & Events which will be named something like TableNameNavigation.
Click the expand button + and you will see it has only one event called
ButtonClick. Well that's cool trouble is it does not work. Why?
Open a DAP in design view and in a script section of the page type the name
of the Navigation control TableNameNavigation say and then a tyoe a dot.
When you add the dot you will notice that there is only one event in the
list and it is NOT ButtonClick. It is called IsButtonEnabled. Well now.
So we have an event in the section of the Microsoft Script Editor, Objects &
Events which does not exist when you use the Microsoft Intellitype. I looked
in the knowledge base and found nothing about this discrepency. I suppose
there should be something there when the following script put in the page by
double-clicking the event ButtonClick in the Client Objects & Events section
of the Microsoft Script Editor for the Navigation control tblTest4Navigation
getting
<SCRIPT LANGUAGE=vbscript FOR=tblTest4Navigation EVENT=ButtonClick>
<!--
MsgBox "Hi"
-->
</SCRIPT>
doesn't work. I have only four buttons showing First Previous Next and Last.
I only tried Next button to test the above script.
Access 2000 SP1.