Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2003
    Posts
    15

    Unanswered: VBS Error - Please help

    I am getting this error when i run this VBS code:

    Microsoft VBScript runtime error: Object required" 'DoCmd'

    and here is my code:

    <script language=vbscript for=rq event=onclick()>
    <!--

    DoCmd.OpenQuery "DeleteCalenderEntries"
    -->
    </script>

    Please let me know - Thanks

  2. #2
    Join Date
    Jul 2003
    Location
    Italy
    Posts
    139
    it looks like you are missing the method...

    The code should be:

    DoCmd.OpenQuery "DeleteCalenderEntries" stDocName, acNormal, acEdit

    Hope this helps...

    If not look for docmd or openquery in Access Help.
    Marco
    ---Do not send e-mail---
    "New Big Bang Theory: God said unzip universe"

Posting Permissions

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