If I have a form that is to resemble a standard dialog box that prompts for a name and I need to display the name on the main form when the main form is first run, how do I do that?

On the main form code, you have to indicate a code that would link the main form code and the other form on displaying the name of which is by the use of ODBC.
The code to be used is as follows;

Private sub frmmainform Click(-)
End if

in from1

Private Sub Command1_Click()
Form2.Label1.Caption = "Name"
End Sub

^Thank you. That worked with a few modifications to fit the application.