VBSlip 9_2_2015-16



=================================Slip9_2==================================
Write a VB program to accept the details of doctor having field’s dno, dname, address, and phone number. Display those details on to the grid.    
=========================================================================
 


Private Sub Command2_Click()
                With Adodc1.Recordset

                                .AddNew
                                !d_no = Val(Text1.Text)
                                !d_name = (Text2.Text)
                                !address = Text3.Text
                                !p_no = Text4.Text
                                .Update
                                .Requery
                End With
                MsgBox ("data inserted")
End Sub
 

No comments:

Post a Comment

Note: only a member of this blog may post a comment.