error in updating records in access db...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #16
    Subscribing .

    Comment

    • vikas1111
      New Member
      • Feb 2008
      • 122

      #17
      Originally posted by Killer42
      Subscribing .

      what???? i couldnt understand...

      Comment

      • lotus18
        Contributor
        • Nov 2007
        • 865

        #18
        Originally posted by vikas1111
        what???? i couldnt understand...
        He just wants to subscribe to this thread so that anytime he can go to this thread.

        Comment

        • vikas1111
          New Member
          • Feb 2008
          • 122

          #19
          Originally posted by lotus18
          He just wants to subscribe to this thread so that anytime he can go to this thread.

          Ok this site is new to me so i dont know much about it...

          Comment

          • lotus18
            Contributor
            • Nov 2007
            • 865

            #20
            Originally posted by vikas1111
            Ok this site is new to me so i dont know much about it...
            BTW, have you fixed your problem?

            Comment

            • vikas1111
              New Member
              • Feb 2008
              • 122

              #21
              Originally posted by lotus18
              BTW, have you fixed your problem?
              No there is 1 error. I am working on it.
              Last edited by NeoPa; Feb 26 '08, 12:45 PM. Reason: Shouting cleared

              Comment

              • lotus18
                Contributor
                • Nov 2007
                • 865

                #22
                Originally posted by vikas1111
                No there is 1 error. I am working on it.
                Hope you got it right ^ ^ .
                Last edited by Killer42; Feb 26 '08, 09:34 PM. Reason: Fix shouting in quote block

                Comment

                • Ali Rizwan
                  Banned
                  Contributor
                  • Aug 2007
                  • 931

                  #23
                  HELLO Vikas,
                  Sorry for late,
                  This is the sample after doing all open the database you will see the changes.

                  Regards
                  >> ALI <<
                  Attached Files

                  Comment

                  • vikas1111
                    New Member
                    • Feb 2008
                    • 122

                    #24
                    Originally posted by lotus18
                    Hope you got it right ^ ^ .

                    Problem finally solved.. Thanks all for helping..


                    [CODE=vb]addnew = True

                    On Error GoTo err1

                    If text1.Text = "" Then
                    MsgBox " enter the c name"
                    text1.SetFocus
                    Exit Sub
                    End If

                    If text2.Text = "" Then
                    MsgBox " enter the c addr"
                    text2.SetFocus
                    Exit Sub
                    End If

                    rsnew3.Open "select * from company", c, adOpenDynamic, adLockOptimisti c
                    rsnew3.addnew
                    rsnew3.Fields(" comp_name").Val ue = text1.Text
                    rsnew3.Fields(" comp_addr").Val ue = text2.Text
                    rsnew3.Update
                    rsnew3.Close
                    If addnew = True Then MsgBox " add new successful ", vbInformation, "successful "

                    If rsnew3.State = adStateOpen Then rsnew3.Close
                    Set rsnew3 = Nothing[/CODE]
                    Last edited by Killer42; Mar 4 '08, 02:52 AM.

                    Comment

                    Working...