• Procedure Statement in Access SQL (2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Procedure Statement in Access SQL (2000)

    Author
    Topic
    #435614

    Hi,

    I was trying this query:

    TRUNCATE TABLE ;

    in Access’ SQL view and it prompted me with something that approximately translates to:[indent]


    Invalid SQL statement; ‘DELETE’, ‘INSERT’, ‘PROCEDURE’, ‘SELECT’ or ‘UPDATE’ statement expected.


    [/indent]My question is not why it doesn’t accept TRUNCATE TABLE, but rather what is a PROCEDURE statement and what does it do?
    And further, is Access SQL documented somewhere? I started studying it via web resources about a year ago and still find unveiled chunks every while — eg. I found that Access SQL accepts the IIF function about a month ago.

    Thank you in advance

    Viewing 1 reply thread
    Author
    Replies
    • #1030118

      There is no statement called TRUNCATE in Access, are you trying to do this from Access to a SQL Server backend?

      • #1030119

        I realized the moment Access prompted me. That’s why I said it wasn’t my question wink.

        • #1030121

          Sorry, i missed that point, must be going blind or senile.

          A procedure is code in VBA that can be behind a form, report or a module.

          • #1030303

            Hello Pat smile
            [indent]


            A procedure is code in VBA that can be behind a form, report or a module.


            [/indent]In this case, I had a hunch it was something different. In the link Hans provided there’s a description of SQL Procedures (I haven’t read it in full detail yet).

    • #1030123

      I don’t know exactly how to get it in Access 2000, but you should be able to get to Microsoft Jet SQL Help from the contents of the built-in Access help.

      Access SQL understands most VBA functions.

      For a description of the PROCEDURE keyword, see Advanced Microsoft Jet SQL for Access 2000 (Microsoft Access 2000 Technical Articles).

    Viewing 1 reply thread
    Reply To: Procedure Statement in Access SQL (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: