hi,
its good to satisfy ur requirements.
For Button 1 write the below coding
form2.show
In that form2 u write the below coding to store
'declare the objects for connection and recordset
Dim con As ADODB.Connection
Dim rst As ADODB.Recordset
'Create object for connection
Set con = CreateObject("ADODB.Connection")
strcon = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\ioc\excel\ioc.xls;" & _
"Extended Properties=Excel 8.0;"
'apply connection string
con.ConnectionString = strcon
'Open the Connection
con.Open
'Create object for recordset
Set rst = New ADODB.Recordset
'Exp i use table employee
rst.Open "select * from employee", con, adOpenDynamic, adLockOptimistic
'To add a record
rst.AddNew
rst(0) = Trim(Combo1.Text)
rst(1) = Trim(Text2.Text)
rst(2) = Trim(Text1.Text)
rst.update
For Button 2 write the below coding
form3.show
same coding given for search but in the query u have to use where condition by my example
select * from employee where empid = '" & combo1.text & "'
and then write coding as
text1.text=rs(1)
text2.text=rs(2)
And finally for Button 3 write the below coding
exit
regards
shailu.