Results 1 to 9 of 9
  1. #1
    McNulty is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    7

    Opening reports from a URL.


    Hi,

    I am developing a small aplication, that can be used via Web, with PHP.

    Actually, I have used MySQL to design the database, and I am using Access because it is very easy to generate forms and reports. So I have linked the MySQL tables into Access. Also I have created most of the app with Access forms. I will use the app also through a PHP interface that I have designed.

    But I would like not to create new reports for PHP. Is there any way to get an URL that open a concrete report from the website?

    Thank you

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    you need access installed locally to open an access report - however if these are static you can save the report as a pdf and store the pdf on the website.

  3. #3
    McNulty is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    7
    Quote Originally Posted by Ajax View Post
    you need access installed locally to open an access report - however if these are static you can save the report as a pdf and store the pdf on the website.
    As I am linking the tables from MySQL, Access file is installed locally in each PC, as a client application. But I don't know how to link a single report from inside Access file from an URL.

    Unfortunately, as reports, they are not static: they always show data dinamically.

    I remember it was possibly to link some parts from an Access file frpom shortcuts. Something like this:

    "location of MSAccess.EXE" "location of accdb"

    But it seems that it is not possible with modern versions. And I don't know the complete syntax to open forms, reports, queries, etc.

  4. #4
    McNulty is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    7
    I have just found this:

    "Each Office product has a different set of command-line switches.

    /x


    macro


    Opens the Access database that was specified before the /x switch, and then runs the specified macro. Another way to run a macro when you open a database is to create a macro named AutoExec.


    Macros can contain viruses, so you must be careful about running them. Take the following precautions: run up-to-date antivirus software on your computer; use the Trust Center to disable all macros except those that are digitally signed; maintain a list of trusted sources of macros.


    / cmd


    None


    Specifies that what follows on the command line is the value that will be returned by the Command function. This option must be the last switch on the command line. You can use a semicolon ( as an alternative to /cmd.


    Use this switch to specify a command-line argument that can be used in Visual Basic for Applications (VBA) code."

    It seems that I can send a command to be executed by VBA in Access. I'm not sure how to do this, but it may be very useful.

    Anyone that know about this?

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    I was going to suggest that - but seem to recall you can open a form in a similar way - not using a macro - but otherwise create the macro to open what is required

  6. #6
    McNulty is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    7
    Quote Originally Posted by Ajax View Post
    I was going to suggest that - but seem to recall you can open a form in a similar way - not using a macro - but otherwise create the macro to open what is required
    Thank you.

    I also have thought about duplicate parts of the Access file. For example, to create each report in a separate Acces file, so I may open each report individually.

    But, even if possible, it would be necessary being able to pass parameters.

  7. #7
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    It’s not something I’ve tried since I don’t use macros but can’t you set a parameter to a macro? Otherwise save the parameter to a temporary text file (i.e. the reportname) and have the macro open the text file and read the name

  8. #8
    McNulty is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    7
    Quote Originally Posted by Ajax View Post
    It’s not something I’ve tried since I don’t use macros but can’t you set a parameter to a macro? Otherwise save the parameter to a temporary text file (i.e. the reportname) and have the macro open the text file and read the name
    Good idea

    Not easy for my knowledge, but not impossible. Thank you. I will try it.

    Anyway, I will continue looking for a more direct solution.

  9. #9
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    found this link which may be of help - it opens a form - but don't see why it couldn't open a report - or perhaps the form opens the report

    https://www.pcreview.co.uk/threads/c...ecord.3395824/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 09-10-2015, 04:52 PM
  2. Opening reports from within a report.
    By Herbolife in forum Reports
    Replies: 2
    Last Post: 04-05-2013, 01:47 AM
  3. Opening Different Reports on Combobox Selection
    By confusedlilly19 in forum Reports
    Replies: 1
    Last Post: 06-24-2012, 03:46 PM
  4. Replies: 3
    Last Post: 06-05-2012, 01:47 PM
  5. Replies: 3
    Last Post: 06-03-2011, 08:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums