I've tried to use DLookup in Excel, but how do I connect to my database before i use the function?
I've tried
but i guess it wont work before i choose which database i will use.
I've tried
Code:
Private Sub HentData()
MsgBox Access.Application.DLookup("[Name]", "Persons", "[Id] = 2")
End Sub
but i guess it wont work before i choose which database i will use.