Exforsys
+ Reply to Thread
Results 1 to 2 of 2

coding doubt

This is a discussion on coding doubt within the Microsoft .NET forums, part of the Programming Talk category; my form cotains 4 text boxes and a field namely gender with 2 radio buttons. the problem is if i ...

  1. #1
    sudhap is offline Junior Member Array
    Join Date
    Jan 2005
    Answers
    9

    coding doubt

    my form cotains 4 text boxes and a field namely gender with 2 radio buttons.
    the problem is if i press \"NEW \" command button ,then a row in my \"access\"
    database should be added with the data i entered in text boxes as well as
    the radio button i select.for that what code i have to write.


    i connected to data base by means of adodc not with code
    and with properties i connected to database.
    plz help me .
    thank u


  2. #2
    itzsug is offline Junior Member Array
    Join Date
    May 2004
    Answers
    22

    Re:coding doubt

    Hi

    In the click event of the New command button write the following

    Data1.recordset.Addnew

    use one more button called update. in the click event of the update button write the following

    data1.updaterecord

    when u want enter a record first click on the new button add the data and click on update. make sure that all ur form controls are bound to the proper records table.

    hope this helps

    Regards,
    Jagadish


Latest Article

Network Security Risk Assessment and Measurement

Read More...