First of all keep a label box named lbltrial in frmquery and just delete the caption of the label. Then give this code in the click property of the command button.
Code:
Private Sub cmdsearch_Click()
Dim frmdisplay As New frmquery
frmdisplay.Show
frmdisplay.lbltrial.Caption = "Hello World!"
End Sub
Also if you want to change the caption of the new form that is created during the program run, just give the following code:
Code:
frmdisplay.Caption = "New Caption"
I think this should help you out...