Created
October 27, 2022 14:14
-
-
Save el3um4s/34df01e24675bf6a7263a640849ff4f0 to your computer and use it in GitHub Desktop.
MEDIUM - How To Link Forms in Access - 03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function AddReference(referenceToImport As String, nameDatabase As String) | |
Dim reference As reference | |
For Each reference In Access.References | |
Dim nameReference As String | |
nameReference = reference.Name | |
If nameReference = referenceToImport Then | |
Access.References.Remove reference | |
End If | |
Next reference | |
Set reference = References.AddFromFile(nameDatabase) | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment