<FONT FACE=monospace><br>Dim LateObject As Object ' Late binding<br>Dim EarlyObject As Recordset ' Early binding <br></font><br>Access can help you write your code when you use Early binding since it knows that EarlyObject is going to refer to a recordset type object. LateObject can refer to anything.<br><br>Late binding can come in handy when you don't know what type of object will be used until runtime...<br><FONT FACE=monospace><br>For Each LateObject in Me<br> If TypeOf LateObject Is CommandButton Then<br> ' process buttons here<br> ElseIf TypeOf LateObject Is Label Then<br> ' Label controls don't support all properties<br> End If<br>Next<br></font> <p>Jim Conrad<br><a href=mailto:JimConrad@Consultant.com>JimConrad@Consultant.com</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.