The short example of what I'm doing is:
...
Me.CCBR_subform.Visible = False
...
'Connect to Oracle via ADODB connection to get recordset
Set Me.CCBR_subform.Form.Recordset = rs
If rs.RecordCount > 0 Then
Me.CCBR_subform.Visible = True
End If
----------------------
Problem is that the subform doesn't disappear until after the ADODB connection is complete. If I put a msgbox after setting CCBR_subform.visible = false (or if I break the code there), it actually happens.
If though, I don't make the program stop at this point, the rest of the code gets going and the subform doesn't disappear until after the recordset assignment.
I remember way back when, when you had to put pauses in your code because the computer worked too fast for the programming languages. I don't even see a way to do that in Access VBA.
I don't want the user to prompted with a msgbox or a program break or something, I just want the subform to go away and not come back unless something exists in the recordset.
...
Me.CCBR_subform.Visible = False
...
'Connect to Oracle via ADODB connection to get recordset
Set Me.CCBR_subform.Form.Recordset = rs
If rs.RecordCount > 0 Then
Me.CCBR_subform.Visible = True
End If
----------------------
Problem is that the subform doesn't disappear until after the ADODB connection is complete. If I put a msgbox after setting CCBR_subform.visible = false (or if I break the code there), it actually happens.
If though, I don't make the program stop at this point, the rest of the code gets going and the subform doesn't disappear until after the recordset assignment.
I remember way back when, when you had to put pauses in your code because the computer worked too fast for the programming languages. I don't even see a way to do that in Access VBA.
I don't want the user to prompted with a msgbox or a program break or something, I just want the subform to go away and not come back unless something exists in the recordset.