HaworthBantam
Programmer
The organisation I work for has rolled out XP in place of it's existing NT platform.
As part of the "build" users have been given MS Access 2003 Runtime only (version 11.0.5614.0). Previously all users had the full version of MS Access 97 as standard.
As a consequence we've had to amend/rewrite a lot of our apps, but one is causing me a few more headaches than usual.
The application in question is written using VB6, connected to a back end Access database. Having not been provided with Crystal Reports, I've used a second Access database that contains reports, and these are called from within the VB6 application.
Code example:
Public Sub ByCustomerName()
On Error GoTo ByCustomerNameError
'Create an instance of Access.
Set acMyApp = New Access.Application
'Set Access as active window.
acMyApp.Visible = True
'Open the Access database.
acMyApp.OpenCurrentDatabase "[pathway]\Reports.mdb", False
'Run the CustomerName() procedure within the Reports.mdb database.
acMyApp.Run "CustomerName"
Exit Sub
ByCustomerNameError:
Select Case Err.Number
Case -2147352567 'Error because user clicked cancel when entering parameter.
Set acMyApp = Nothing
Exit Sub
Case Else
MsgBox "An Error has occured, please quote the following to the IT Service Centre - tel **** *** ****." _
& Chr(13) & Chr(13) & Err.Number & " - " & Err.Description, vbOKOnly, _
"Error in procedure - ByCustomerName (BDApp ID: 5050)"
Resume Next
End Select
End Sub
My problem, basically, is that now the users only have the runtime version of Access, the reports functionality within the app no longer works.
Is there anyone out there with a solution idea not involving Crystal Reports or a move to dot net, neither of which my employer will pay for.
Many Thanks.
Ian