• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Exploring Objects > The Power of Controls Revisited

The Power of Controls Revisited

The two previous chapters presented a glimpse of the functionality and power available to anyone who takes the time to explore the inner workings of the control. It’s time to build on that foundation by delving a little deeper into this thought-provoking topic. Let’s start by discussing the various methods by which a control can display data.

An unbound control can still display data through its row source property. You can link the row source to a table and maintain access to its fields through the Column property of the control. You can even designate which row you want to reference because the column property can be accessed like a two-dimensional spreadsheet. If you enter just one argument, the procedure assumes that you want access to a particular column. For example, if you enter MyControl.column(1) in the control source of another control, you are asking for the second column (remember, the first is zero) from the MyControl control that has its row source set to a table with at least two fields. However, if you enter MyControl.column(0, 1), you are asking for the second row (again, the first being zero) in the first column of the same control. Always be aware that this property is zero based.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint