I have an MS Access database with a function to import a file from our AS400. This function has always worked until a few days ago. Now whenever I call this function it just hangs, and when looking at the QZDASOINIT job log there is a message which says MSYSCONF in QGPL type *FILE not found. My function in MS Access doesn't "touch" this file so why is it looking for it.
Just for your information here is the call to my function:
Call ImportODBCTable("ODBC;DSN=LIBINFOCBS11;UID=" & strUsername & ";PWD=" & strPassword & ";DATABASE=LIBINFO", "LIFLIPM", "LIFLIPM", acImport)
And here is the function which is does the importing:
Sub ImportODBCTable(ByVal strConnection As String, _
ByVal strSource As String, _
ByVal strDest As String, _
Optional ByVal intType As AcDataTransferType = acImport)
'intType = Transfer Type (acExport, acImport or acLink)
'strConnection = Database Name (full name including path of database to be imported)
'strSource = Source Name (name of object to be imported)
'strDest = Destination (name of linked object in database)
DoCmd.TransferDatabase intType, "ODBC Database", strConnection, acTable, strSource, strDest, False
End Sub
As I said before this has always worked until I installed the latest V5R2 Client Access Service Pack.
Does anyone have any ideas as to what could be wrong? Or can anyone suggest another means of importing the file from the AS400?
Just for your information here is the call to my function:
Call ImportODBCTable("ODBC;DSN=LIBINFOCBS11;UID=" & strUsername & ";PWD=" & strPassword & ";DATABASE=LIBINFO", "LIFLIPM", "LIFLIPM", acImport)
And here is the function which is does the importing:
Sub ImportODBCTable(ByVal strConnection As String, _
ByVal strSource As String, _
ByVal strDest As String, _
Optional ByVal intType As AcDataTransferType = acImport)
'intType = Transfer Type (acExport, acImport or acLink)
'strConnection = Database Name (full name including path of database to be imported)
'strSource = Source Name (name of object to be imported)
'strDest = Destination (name of linked object in database)
DoCmd.TransferDatabase intType, "ODBC Database", strConnection, acTable, strSource, strDest, False
End Sub
As I said before this has always worked until I installed the latest V5R2 Client Access Service Pack.
Does anyone have any ideas as to what could be wrong? Or can anyone suggest another means of importing the file from the AS400?