Call procedure with commandbutton in webpage

Hi,

I'm using Accrss 2003. I try to build a GUI using the Webpage-option in
Access. Now I want to call a procedure by placing a CommandButton on the
webpage. Doing so I find the following in thr Microsoft Script Editor

<SCRIPT language=vbscript event=onclick for=Knop0>
<!--

-->
</SCRIPT>

What do I have to adjust in the webpage-code to call the following:

Public Function BTV()
MsgBox "Here I am!"
' and lines and lines of code will follow ...
End Function


Hope anyona can help.

Thanks,

susan
Susan [ Fr, 25 Januar 2008 09:57 ] [ ID #1916219 ]

Re: Call procedure with commandbutton in webpage

Wow, i didn't know 2003 had a webpage editor. I wish I could make money
from programming in VBA, then I could afford to upgrade.
This really is the wrong place for this kind of query, you'd probably
benefit more from any vbscipt newsgroup.

In any case off the top of my head, this should work, however I give no
guarantees on this as I'm more into ASP development and I think they're
similar.
--------------------------------------------------------
<SCRIPT language=vbscript event=onclick for=Knop0>
<!--

BTV()

Public Function BTV()
MsgBox "Here I am!" ' and lines and lines of code will follow ...
End Function

-->
</SCRIPT>
--------------------------------------------------------

I hope this leads you in the right direction.


Dominic

"susan" <duffy24 [at] hetnet.nl> wrote in message
news:64c2a$4799a45c$524b37b6$16773 [at] cache6.tilbu1.nb.home.nl. ..
> Hi,
>
> I'm using Accrss 2003. I try to build a GUI using the Webpage-option in
> Access. Now I want to call a procedure by placing a CommandButton on the
> webpage. Doing so I find the following in thr Microsoft Script Editor
>
> <SCRIPT language=vbscript event=onclick for=Knop0>
> <!--
>
> -->
> </SCRIPT>
>
> What do I have to adjust in the webpage-code to call the following:
>
> Public Function BTV()
> MsgBox "Here I am!"
> ' and lines and lines of code will follow ...
> End Function
>
>
> Hope anyona can help.
>
> Thanks,
>
> susan
>
Dominic Vella [ Mo, 28 Januar 2008 22:05 ] [ ID #1918130 ]
Datenbanken » comp.databases.ms-access » Call procedure with commandbutton in webpage

Vorheriges Thema: RecordCount method
Nächstes Thema: Problems running Acc2003 DB in Acc2007