Are arrays of control objects possible? (1 Viewer)

gellerche

Registered User.
Local time
Today, 17:07
Joined
Jun 19, 2001
Messages
73
I am doing an application where I want to display several rows of related data (Invoice ID, amount due, etc.) and allow the user to change data (which excludes reports). Right now I have to explicitly name each label and text box (eg. lblInvoiceID1, lblInvoiceID2, etc.). Is there a way to use an array for these labels and text boxes to streamline my code?

Thank you,

Steve Geller
 

jimbrooking

Registered User.
Local time
Today, 12:07
Joined
Apr 28, 2001
Messages
210
Steve,

You can set the form's Default View to Continuous Forms, and that will show all the records in the recordsource (or as many as will fit on the form). You can show a vertical scroll bar to "get to the bottom of things".

If you want to tie the recordsource to something like a customer number (e.g., all invoices for this customer) you could have a subform that displays the invoices, with the customer number in the invoice subform tied to the customer number on the main form.

HTH,
Jim
 

Users who are viewing this thread

Top Bottom