>p.e.
>Dim strFullPath As String
>Dim blnExists As Boolean
>strFullPath = "C:\Percorso\Bello.accdb"
>blnExists = DCount("*", "MSysObjects", "Name='TabellaCollegata'") > 0
>If Dir(strFullPath) > "" Then
> If blnExists Then DoCmd.DeleteObject acTable, "TabellaCollegata"
> DoCmd.TransferDatabase acLink, "Microsoft Access", _
> strFullPath, acTable, "TabellaOrigine", "TabellaCollegata"
>Else
> If blnExists Then DoCmd.DeleteObject acTable, "TabellaCollegata"
>End If
>La prova con blnExists nel IF evita doppioni, nel ELSE messaggi di errore.
>--
>Ciao
>Karl
>*********
Access FAQ:
http://www.donkarl.com/it