Public Function LinkTable(strLocalName As String, strSourceName As String, strSourceLocation As String, blnHideTable as boolean)
'Links a table to the current project
If fFindTable(strLocalName) Then
DoCmd.DeleteObject acTable, strLocalName
End If
DoCmd.TransferDatabase acLink, "Microsoft Access", strSourceLocation, acTable, strSourceName, strLocalName
Dim tb As New ADOX.Table
Dim cat As New ADOX.Catalog
cat.ActiveConnection = CurrentProject.Connection
Set tb = cat.Tables(strLocalName)
tb.Properties("Jet OLEDB:Table Hidden In Access") = blnHideTable
End Function