MS Access Stored Procedure

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default MS Access Stored Procedure

    I've read several articles, this being one of them:
    [url]http://www.aspemporium.com/aspEmporium/tutorials/StoredProcedures.asp[/url]
    regarding SP in MS Access. What appears to be straight-forward in SQL is
    not so straight forward in Access.

    I have a SAM's book, Mastering Microsoft Access 2000 Development where it
    discusses ADP files and the simplicity of creating SPs, but states they're
    only used with data stored in a SQL database so that appears to be out, for
    now.

    Thus, I have two questions:
    1. I've searched google and not found really good references other than
    discussions that either suddenly end without resolution or vague references
    other than the above which is not a lot of information.

    2. Is it also possible to use reports, stored in Access, that use stored
    queries and if so, can you point me to some information or provide an
    example?

    Ex. I have a report that calls a query which requests user input and
    returns the results, formats the page for printing, etc. It would be nice
    to harness this. I can export a report but the query has already been
    executed by this time.

    TIA...

    --
    Roland Hall
    /* This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose. */
    Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
    WSH 5.6 Documentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

  2. Similar Questions and Discussions

    1. Stored Procedure
      EXEC master..xp_cmdshell 'cscript c:\path\file.vbs' EXEC master..xp_cmdshell 'c:\path\file.exe' "Kannan" <gk_i@yahoo.com> wrote in message...
    2. stored procedure value
      How can I bind a stored procedure value to a page? I've executed a stored procedure and there should be two column values created...i.e. col1 and...
    3. help with a stored procedure
      I am new to postgres stored procedures and would like a little help. My function basically takes 2 arguments and inserts data into a table from a...
    4. URGENT Access Stored Procedure Help
      This is the SQL code I have in one of my queries SELECT PageRequests.*, Users.UserUsername FROM PageRequests, Users WHERE...
    5. need help on a stored procedure
      I have 2 tables. table1 and table2 I do a select on table1 and join table 2 on id. I want to check newprice in table1. if it is null, I want to...
  3. #2

    Default Re: MS Access Stored Procedure

    Roland Hall wrote:
    > I've read several articles, this being one of them:
    > [url]http://www.aspemporium.com/aspEmporium/tutorials/StoredProcedures.asp[/url]
    > regarding SP in MS Access. What appears to be straight-forward in
    > SQL is not so straight forward in Access.
    >
    > I have a SAM's book, Mastering Microsoft Access 2000 Development
    > where it discusses ADP files and the simplicity of creating SPs, but
    > states they're only used with data stored in a SQL database so that
    > appears to be out, for now.
    >
    > Thus, I have two questions:
    > 1. I've searched google and not found really good references other
    > than discussions that either suddenly end without resolution or vague
    > references other than the above which is not a lot of information.
    >
    > 2. Is it also possible to use reports, stored in Access, that use
    > stored queries and if so, can you point me to some information or
    > provide an example?
    Do you mean from ASP?

    It is certainly possible to create a report based on a saved parameter query
    and run it in Access. I used to do it all the time.

    However, if you are talking about displaying that report via ASP, then you
    are barking up the wrong tree. Access needs to be involved to run Access
    reports. It is possible to automate Access from an external program such as
    VB, but MS discourages automating any Office application in server-side ASP
    code ([url]http://support.microsoft.com/?kbid=257757[/url])

    Remember, Access is a desktop app, and therefore does not behave as a server
    application would behave.

    I once saw an article in VBPJ that talked about utilizing the Snapshot
    Viewer to create a COM dll that queued report requests, but I never tried
    it.

    Crystal's report designer is just as good as Access's, and it has a Viewer
    component that can be called via ASP.

    HTH,
    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  4. #3

    Default Re: MS Access Stored Procedure

    "Bob Barrows" wrote:
    : Roland Hall wrote:
    : > I've read several articles, this being one of them:
    : > [url]http://www.aspemporium.com/aspEmporium/tutorials/StoredProcedures.asp[/url]
    : > regarding SP in MS Access. What appears to be straight-forward in
    : > SQL is not so straight forward in Access.
    : >
    : > I have a SAM's book, Mastering Microsoft Access 2000 Development
    : > where it discusses ADP files and the simplicity of creating SPs, but
    : > states they're only used with data stored in a SQL database so that
    : > appears to be out, for now.
    : >
    : > Thus, I have two questions:
    : > 1. I've searched google and not found really good references other
    : > than discussions that either suddenly end without resolution or vague
    : > references other than the above which is not a lot of information.
    : >
    : > 2. Is it also possible to use reports, stored in Access, that use
    : > stored queries and if so, can you point me to some information or
    : > provide an example?
    :
    : Do you mean from ASP?
    :
    : It is certainly possible to create a report based on a saved parameter
    query
    : and run it in Access. I used to do it all the time.
    :
    : However, if you are talking about displaying that report via ASP, then you
    : are barking up the wrong tree. Access needs to be involved to run Access
    : reports. It is possible to automate Access from an external program such
    as
    : VB, but MS discourages automating any Office application in server-side
    ASP
    : code ([url]http://support.microsoft.com/?kbid=257757[/url])
    :
    : Remember, Access is a desktop app, and therefore does not behave as a
    server
    : application would behave.
    :
    : I once saw an article in VBPJ that talked about utilizing the Snapshot
    : Viewer to create a COM dll that queued report requests, but I never tried
    : it.
    :
    : Crystal's report designer is just as good as Access's, and it has a Viewer
    : component that can be called via ASP.

    Yes, I meant from ASP. I thought that was assumed since I was in this NG
    but I know how OT questions get posted in the wrong NG. Too bad Microsoft
    doesn't put the Access reporting engine in a COM.

    Very helpful. Thanks Bob.

    I might have an additional question regarding printing and FSO but that
    should probably be asked in asp.general. I'll post one there if I get stuck
    or need some advice.

    Roland


    Roland Hall Guest

  5. #4

    Default Re: MS Access Stored Procedure

    Roland Hall wrote:
    >> It is certainly possible to create a report based on a saved
    >> parameter query and run it in Access. I used to do it all the time.
    >>
    >> However, if you are talking about displaying that report via ASP,
    >> then you are barking up the wrong tree. Access needs to be involved
    >> to run Access reports. It is possible to automate Access from an
    >> external program such as VB, but MS discourages automating any
    >> Office application in server-side ASP code
    >> ([url]http://support.microsoft.com/?kbid=257757[/url])
    >>
    >> Remember, Access is a desktop app, and therefore does not behave as
    >> a server application would behave.
    >>
    >> I once saw an article in VBPJ that talked about utilizing the
    >> Snapshot Viewer to create a COM dll that queued report requests, but
    >> I never tried it.
    >>
    >> Crystal's report designer is just as good as Access's, and it has a
    >> Viewer component that can be called via ASP.
    >
    > Yes, I meant from ASP. I thought that was assumed since I was in
    > this NG but I know how OT questions get posted in the wrong NG. Too
    > bad Microsoft doesn't put the Access reporting engine in a COM.
    >
    > Very helpful. Thanks Bob.

    It just occurred to me that I've been out of Access development for several
    years now and that there may be features of which I am unaware in the
    current version of Access that allow the deployment of reports on the web.
    You might want to try asking on one of the Access newsgroups.

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  6. #5

    Default Re: MS Access Stored Procedure

    "Bob Barrows" wrote:
    : Roland Hall wrote:
    : >> It is certainly possible to create a report based on a saved
    : >> parameter query and run it in Access. I used to do it all the time.
    : >>
    : >> However, if you are talking about displaying that report via ASP,
    : >> then you are barking up the wrong tree. Access needs to be involved
    : >> to run Access reports. It is possible to automate Access from an
    : >> external program such as VB, but MS discourages automating any
    : >> Office application in server-side ASP code
    : >> ([url]http://support.microsoft.com/?kbid=257757[/url])
    : >>
    : >> Remember, Access is a desktop app, and therefore does not behave as
    : >> a server application would behave.
    : >>
    : >> I once saw an article in VBPJ that talked about utilizing the
    : >> Snapshot Viewer to create a COM dll that queued report requests, but
    : >> I never tried it.
    : >>
    : >> Crystal's report designer is just as good as Access's, and it has a
    : >> Viewer component that can be called via ASP.
    : >
    : > Yes, I meant from ASP. I thought that was assumed since I was in
    : > this NG but I know how OT questions get posted in the wrong NG. Too
    : > bad Microsoft doesn't put the Access reporting engine in a COM.
    : >
    : > Very helpful. Thanks Bob.
    :
    :
    : It just occurred to me that I've been out of Access development for
    several
    : years now and that there may be features of which I am unaware in the
    : current version of Access that allow the deployment of reports on the web.
    : You might want to try asking on one of the Access newsgroups.

    I'll look into it but I wrote the reporting part last night using DHTML.
    I'm using two different stylesheets, one for media=screen and one for
    media=print. I added a clickable image that pops up a window, passes the
    report to it with a close button which does not get rendered during the
    print process and call for the print dialog box immediately. The user is
    required to pick the printer they want to use and then print. They can
    click the close button afterwards.

    What I did have an issue with was using this:

    <script type="text/javascript">
    function window.onafterprint() {
    self.close();
    }
    </script>

    It never fires. I know it's not relevant for here so perhaps I will pursue
    that in the jscript NG after a little more testing.
    Thanks again for your help and I appreciate the follow up. (O:=

    --
    Roland Hall
    /* This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose. */
    Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
    WSH 5.6 Documentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139