yes you can... for example, one way is to open MS Access using the shell and pass aurguments (eg recordid for the name of the report to display).
eg the dos command line would look something like:
Code:
"E:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "M:\db4.mdb" /x mcrOpenReport /nostartup /cmd report=MyFirstReport recordid=1
where:
"E:\Program Files\...." = is the path to MSACCESS.exe
"M:\db4.mdb" = is path to your MS Access 'reporting' app
/x mcrOpenReport = tells ms access to run the macro called mcrOpenReport when it opens
/nostartup suppresses accesses opening dialog box
/cmd (and the rest of the text that follow) = a list of command line arugments you wish to 'send' to your reporting app. In this example report=MyFirstReport and recordid=1, where MyFirstReport is the name of the report you want to open and recordid=1 is the record you want the report to show
So, in your MS Access 'reporting' app, you would create a macro called e.g. "mcrOpenReport" which will have the action "RunCode" with the name of your function you want to run when access starts up e.g. OpenCommandLineReport()
Then, in a public module you will have something like:
Code:
Public Function OpenCommandLineReport()
MsgBox Command
' add code to parse teh Command string and open
appropriate report at the specified record.
End Function
does this help?
cheers,
dan