Is it possible to handle a button click within a button click event function in VBA? I want to iterate through records in an access database table, find similar records, present the user with two of those similar records, then have them click a button to choose one of those records.
Consider this pseudocode:
Sub Choose_Click()
For (loop through DB recordset)
Label1 = Record1
Label2 = Record2
Listen for button click
If (Click Button1)
Choose Record1
do something
ElseIf (Click Button2)
Choose Record2
do something