Results 1 to 9 of 9

Thread: multiple step operation generated errors!!! HELP ME

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2005
    Posts
    34

    Exclamation multiple step operation generated errors!!! HELP ME

    i have never seen this error before. Its a run time error. The source code below generates it. Please tell me how to fix it. Thanks in advance.
    VB Code:
    1. Private Sub Command2_Click()
    2.  
    3. Adoproducts.Recordset.Fields("ProductID") = tbpid.Text
    4. Adoproducts.Recordset.Fields("ProductName") = tbpn.Text
    5. Adoproducts.Recordset.Fields("Date") = tbdate.Text
    6. Adoproducts.Recordset.Fields("US Rate") = tbrate.Text
    7. Adoproducts.Recordset.Fields("Scaled Weight") = tbweight.Text
    8. Adoproducts.Recordset.Fields("Yeild") = tbyeild.Text
    9. Adoproducts.Recordset.Fields("IngredientList") = txtlist.Text
    10. Adoproducts.Recordset.Fields("TOTAL") = txttotal.Text
    11.  
    12. End Sub

  2. #2
    Hyperactive Member Vishalgiri's Avatar
    Join Date
    Oct 2003
    Location
    India
    Posts
    345

    Re: multiple step operation generated errors!!! HELP ME

    VB Code:
    1. Private Sub Command2_Click()
    2.  
    3.     Adoproducts.Recordset.AddNew()
    4.     Adoproducts.Recordset.Fields("ProductID") = tbpid.Text
    5.     Adoproducts.Recordset.Fields("ProductName") = tbpn.Text
    6.     Adoproducts.Recordset.Fields("Date") = tbdate.Text
    7.     Adoproducts.Recordset.Fields("US Rate") = tbrate.Text
    8.     Adoproducts.Recordset.Fields("Scaled Weight") = tbweight.Text
    9.     Adoproducts.Recordset.Fields("Yeild") = tbyeild.Text
    10.     Adoproducts.Recordset.Fields("IngredientList") = txtlist.Text
    11.     Adoproducts.Recordset.Fields("TOTAL") = txttotal.Text
    12.     Adoproducts.Recordset.update()
    13.  
    14. End Sub

    Insted you can you
    Connection.Execute "INSERT INTO....
    Regards,
    Vishalgiri Goswami
    Gujarat, ( INDIA ).
    ---------------------

  3. #3
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: multiple step operation generated errors!!! HELP ME

    your question is somewhat not understandable and is not providing full details. please also tell what run-time error it generates and which line does it highlights.

    Harsh
    Show Appreciation. Rate Posts.

  4. #4
    Hyperactive Member Vishalgiri's Avatar
    Join Date
    Oct 2003
    Location
    India
    Posts
    345

    Re: multiple step operation generated errors!!! HELP ME

    Even I am not able to understand his multiple step, lol, Today i realize that every vb6 sub or function is a Multiple Step Procedure, lol
    Regards,
    Vishalgiri Goswami
    Gujarat, ( INDIA ).
    ---------------------

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: multiple step operation generated errors!!! HELP ME

    I've found that "multiple step" error is quite often generated as a result of a type mismatch.

  6. #6
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346

    Re: multiple step operation generated errors!!! HELP ME

    Without knowing what exactly the error is, much less what line it highlights... I can deduce approximately 30 things minimum that could be wrong...

    What we need is (as Harsh Gupta already stated) is the error message and the line it highlights...
    If my post has been helpful, then please rate it accordingly...
    If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.

  7. #7
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Re: multiple step operation generated errors!!! HELP ME

    Al42 is right, i also encountered that error before.. another cause is when the lenght of data you're saving to the db exceeds the lenght of the field..

    anyway, i suggest you follow the suggestion of Vishalgiri, use the INSERT stuff....

    this is a manifest how CRUEL bound controls are...
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  8. #8
    Hyperactive Member Vishalgiri's Avatar
    Join Date
    Oct 2003
    Location
    India
    Posts
    345

    Re: multiple step operation generated errors!!! HELP ME

    I am completely agree with eimroda, While working with Access Databases (.mdb) the length of the field if by default 50, so every time i designs a Access Database I need to make it 255.

    In that case even INSERT stuff will produce error.
    Regards,
    Vishalgiri Goswami
    Gujarat, ( INDIA ).
    ---------------------

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: multiple step operation generated errors!!! HELP ME

    I see several possible problems right off
    VB Code:
    1. Adoproducts.Recordset.Fields("Date") = tbdate.Text
    2. Adoproducts.Recordset.Fields("US Rate") = tbrate.Text

    How are these fields (and the others) defined in your database? Multiple Step Error just means that the engine would need to do multiple operations to get the data to match correctly. If these fields are the wrong type this type of error will happen.

    Or if you are attempting to insert NULLS into the database.
    Last edited by randem; Apr 19th, 2006 at 04:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width