You need to create a Reference to your 2nd database by selecting TOOLS|REFERENCES... That way your 1st database knows where the function funGetfrmProbUpdateARCHIVE can be found. Without the reference, it won't work.
However, I would strongly recommend using the method of relinking that I suggested in my previous post. That way you don't have to worry about maintaining another form (or 2). And the user can view and report on the Archived data the same way they view/report on the Live Data. Simply place a button on the form the says "View Archive Data". In the OnClick event call the function below. For Example,
Private Sub cmdViewArchive_Click()
Dim strDatabase As String
If (InStr(cmdViewArchive, "Archive"

) Then
strDatabase = "NameOfArchiveDatabase"
cmdViewArchive.Caption = "View Live Data"
Else
strDatabase = "NameOfLiveDatabase"
cmdViewArchive.Caption = "View Archived Data"
End If
Call LinkTable(strDatabase, "Table1", "Table2"
End Sub
'+********************************************************************************************
'*
'$ Function: LinkTable
'*
'* Author: FancyPrairie
'*
'* Date: December, 2000
'*
'* Purpose: This rouine will link the table(s) specified to the database specified.
'*
'* Arguments: strLinkToDBname ... name of database (path\.mdb) where tables reside
'* varTblName ........ List of table(s) that need to be linked to strLinkToDBName
'* Note that if the varTblName = "All", then all of the
'* tables in the current database will be linked to the
'* database specified.
'*
'-********************************************************************************************
'
Function LinkTable(strLinkToDBname As String, _
ParamArray varTblName() As Variant)
'********************************
'* Declaration Specifications *
'********************************
Dim dbs As Database
Dim tdf As TableDef
Dim i As Integer
Set dbs = CurrentDb
'***********************
'* Relink the tables *
'***********************
If (varTblName(0) = "All"

Then
For Each tdf In dbs.TableDefs
tdf.Connect = ";DATABASE=" & strLinkToDBname
tdf.RefreshLink
Next
Else
For i = 0 To UBound(varTblName)
Set tdf = dbs.TableDefs(CStr(varTblName(i)))
tdf.Connect = ";DATABASE=" & strLinkToDBname
tdf.RefreshLink
Next i
End If
'********************
'* Exit Procedure *
'********************
ExitProcedure:
Exit Function
'****************************
'* Error Recovery Section *
'****************************
ErrHandler:
MsgBox Err.Description, vbExclamation
Resume ExitProcedure
End Function