How to create command codes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alem
    New Member
    • Dec 2006
    • 38

    How to create command codes

    Hi Dear All
    I I don't know how to write command codes in VB such as Delete,Add,Next ,Prevuios,and others

    I have read most Question and Answere in this Forum i tried but I got wrong message I may select wrong Library name that is ODB if it is wrong also let me know.

    Thanks in advance.
    (alem)
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Hi alem, you can do a google search for 'vb ado tutorial' and that should bring up far more than you care to read on the subject. Good luck.

    Comment

    • PoojaJyoti
      New Member
      • Mar 2007
      • 4

      #3
      The simplest way to write code when you use data control.
      Select microsoft ADO data control 6.0(ADODB)from Project--componant.
      Drag control to form.Right click select properties.Give appropriate connecttion ,record source properties.If you are using SQL server ,wtite server name,user Id,password and test connection(firs t click Build).If sucesssed go to recordsourse select 2 adCmdtable write table name.Now change textBox properties datasource and datafield property.
      Now you can write code for New command as
      adodcname.recor dset.AddNew
      similarly for delete,save
      adodcname.recor dset.delete

      Comment

      • willakawill
        Top Contributor
        • Oct 2006
        • 1646

        #4
        Which version of vb are you using?

        Comment

        Working...