ACC: How to Use DLookup() to Look Up Values in Forms or Reports (93025)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q93025
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
You can display multiple fields in a combo or list box on a form or report
even when those fields come from a table that is not bound to the form or
report. You can also update controls, such as text boxes, with new
information based on what a user selects from a combo or list box.
To accomplish these objectives, you can use one of the following
techniques:
- Use AutoLookup in forms.
- Use multiple DLookup() functions in forms and reports.
- Use the Column property of a multiple-column combo box to update a
text box control with new information as focus moves from row to
row in the combo box.
This article shows you how to use the DLookup() function to look up values
in forms or reports.
REFERENCES
For more information about the DLookup() function, search the Help Index
for "DLookup," or ask the Microsoft Access 97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbhowto kbusage KB93025 |
---|
|