DLookup is the least preferred method as domain aggregate functions can perform slowly in queries and on forms. Try one of the other two methods. Or post your attempted DLookup() expression.
DLookup is the least preferred method as domain aggregate functions can perform slowly in queries and on forms. Try one of the other two methods. Or post your attempted DLookup() expression.
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.
=DLOOKUP("[surname]","debtor details", "account number=13351/2")
Space in field name - use []. Also, the field is text type so need apostrophe delimiters.
=DLOOKUP("[surname]","debtor details", "[account number]='13351/2'")
If you want to pull dynamically based on current record:
=DLOOKUP("[surname]","debtor details", "[account number]='" & [account number] & "'")
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.
Can you please tell us about your tables and relationships?