View Full Version : Assign default value to text box on form load event


drp
11-06-2011, 07:44 PM
Hi

I am beginner to VB6.0

in my project1 in a form I placed one text box "text1" and "data1" data control

when I run form I want to fill the "Text1" by default with a field from recordset i.e field from first record of recordset.

data1 recordset have two field - "User" and "SrNo"

I want "Text1.text" to display "SrNo" value say '12356' from first record during form load event

pls help waiting somebodies quick reply or any idea to solve my problem