Submit a form from a sub rountine

Results 1 to 3 of 3

Thread: Submit a form from a sub rountine

  1. #1
    Renidea Guest

    Default Submit a form from a sub rountine

    I am using a button in my form to call a VB script sub routine that will run a few commands before submitting the form data (this in hope of replacing the traditional submit button). What is the VB script command for submitting the form? I know in JavaScript the command is something like: document.forms[FormNum].submit(); <BR>Is there a similar command in VBScript?

  2. #2
    Curious Coder Guest

    Default Sure is...

    It is simply - <BR><BR>formname.submit

  3. #3
    Renidea Guest

    Default Didn't work, what am I doing wrong?

    Upon trying your suggestion, I get the following error if option explicit is declared:<BR><BR>"Microsoft VBScript runtime error &#039 800a01f4&#039 <BR>Variable is undefined: &#039SearchForm&#039 "<BR><BR><BR>If option explicit is not declared I get this error:<BR><BR>"Microsoft VBScript runtime error &#039 800a01a8&#039 <BR>Object required: &#039SearchForm&#039 "<BR><BR>Any suggestions?<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts