ACC2000: How to Use Visual Basic to Fill Text Boxes on a Report (210136)
The information in this article applies to:
This article was previously published under Q210136 This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
Moderate: Requires basic macro, coding, and interoperability skills.
For a Microsoft Access 2002 version of this article, see 291533.
SUMMARY
This article shows you how to create a sample Visual Basic for Applications
function that populates (or fills) controls on a report based on a table
or query when you preview or print the report. The sample function
fills a newly-created text box on a report with a value from the
QuantityPerUnit field in the Products table of the sample database
Northwind.mdb. The report is based on the Current Product List query
of the Northwind database.
NOTE: This article explains a technique demonstrated in the sample
file, RptSmp00.mdb. For information about how to obtain this sample file,
please see the following article in the Microsoft Knowledge Base:
231851 ACC2000: Microsoft Access 2000 Sample Reports Available in Download Center
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto kbProgramming KB210136 |
---|
|