I have a text box (txtProductInfoBox) on my Products form (fProducts) that gets populated with different product information depending on which command button the user presses.
I display the information requested with VBA code successfully, e.g.
Code:
Private Sub ProdInfo_1_Click()
prodinfo = "xxxxxxxxxxxxxxxxxxxxxxx" & "yyyyyyyyyyyyyyyyy" & "zzzzzzzzzzzzzzzzzzzzzz"
Me.txtProductInfoBox.Value = prodinfo
End Sub
The problem comes when the user changes records using the navigation bar or PgUp/PgDn, I need to clear the text box. How do I do this? I have tried form initialization, on change events, but either that is not the solution or I am doing it wrong. All suggestions welcomed.