i'm fairly new at access and i'm still learning, but i've gotten a hold on
the basics and some more advanced stuff as i'm a little educated in
peoplesoft. sorry this may seem trivial but i can't figure it out.
i'm making a data access page in MS Access 2002 and when i want to add
components (such as custom filter dropdowns, etc) i was using the built in
help. i have all my components all set up until the help says "go to onClick
event" for example. but in all my elements properties i no longer have the
event tab that i had when i was making a form.
is it not supposed to be there? or do i have to enter my code elsewhere or
another way?
i need to add a "dataPageComplete" event but the only available events are
"on____"
could i have some help on this please?
thank you,
ryan
<SCRIPT language=vbscript event=DataPageComplete(oEventInfo) for=MSODSC>
<!--
txtCount.innerText = oEventInfo.DataPage.Recordset.RecordCount
If ShowAll = true then
optionactive.checked = false
optionall.checked = true
ShowAll = false
end if
...
Paul D
"RJV" <R...@discussions.microsoft.com> wrote in message
news:E9CDBF95-930D-4595...@microsoft.com...
: well i've found out how to get to the events, now i have a no dilemma
<SCRIPT language=vbscript>
Dim fInited
fInited = FALSE
Sub OnFilterComboChange()
Dim stWhere
If (divFilter.value <> "" And posFilter.value <> "") Then
stWhere = "Skill Level:" & divFilter.value & " "
stWhere = stWhere & "AND Position:" & posFilter.value
MSODSC.RecordsetDefs.Item("Player Information").ServerFilter = stWhere
End If
End Sub
</SCRIPT>
<SCRIPT language=vbscript event=DataPageComplete(dscei) for=MSODSC>
<!--
If(fInited=FALSE) And (dscei.DataPage.GroupLevel.RecordSource = "Player
Information") Then
fInited = TRUE
divFilter.value = ""
posFilter.value = ""
MSODSC.DataPages (0).Undo
End If
-->
</SCRIPT>
<SCRIPT language=vbscript event=onchange(oEventInfo) for=PosFilter>
<!--
OnFilterComboChange()
-->
</SCRIPT>
<SCRIPT language=vbscript event=onchange(oEventInfo) for=divFilter>
<!--
OnFilterComboChange()
-->
</SCRIPT>
"PaulD" wrote:
> My DAPs all have a 'DataPageComplete' event looks something like
>
> <SCRIPT language=vbscript event=DataPageComplete(oEventInfo) for=MSODSC>
> <!--
> txtCount.innerText = oEventInfo.DataPage.Recordset.RecordCount
> If ShowAll = true then
> optionactive.checked = false
> optionall.checked = true
> ShowAll = false
> end if
> ....
>
> Paul D