Hi,
I would like to create a Dlookup function in [qryAnimals]
The purpose of the function is to retrieve te correct "animal" from [tblAnimals] matched by ID.
Please use my attached file.
Br Betrand
Hi,
I would like to create a Dlookup function in [qryAnimals]
The purpose of the function is to retrieve te correct "animal" from [tblAnimals] matched by ID.
Please use my attached file.
Br Betrand
Something wrong with this db. It is not recognizing the intrinsic DLookup function. This should work but isn't:
SELECT tblAnimals.ID, DLookUp("Animal","tblAnimals","ID=" & [ID]) AS DLookupFunction FROM tblAnimals;
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
It's because the project is named DLookUp!~)
I renamed the database. Query still doesn't work.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
You need to rename the Project in the vba editor properties.
You can keep the name of the database.
Okay, that did it. Never ran into this before.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Try and name a public function the same as the project name and run it... It will not work!~)
I knew about naming conflicts, but never encountered and just didn't come to mind.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thank you guys, excellent support!