Results 1 to 5 of 5

Thread: Automation Error 440

  1. #1
    Join Date
    Mar 2009
    Posts
    89

    Automation Error 440

    Hi friends,

    I am facing an issue in Visual basic whenever i am trying to add field in one of the tables in MS Access i am getting the following error message as


    Run-Time Error '-2147217887(80040e21)':
    Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available.


    I don't know whats wrong Can anyone solve this issue for me.

  2. #2
    Join Date
    Nov 2005
    Posts
    403

    Re: Automation Error 440

    Sure i will solve this Automation Error 440 for you it would be great if you can provide me the code in which you are getting the Automation error message.

  3. #3
    Join Date
    Mar 2009
    Posts
    89

    Re: Automation Error 440

    Following are the code in which i am getting automation error 440 message

    Code:
    Public Function Phone Call(phone_Field As Field, txtPhone As TextBox) As Boolean
      Phone Call = PhoneFormat(txtPhone)
      If Phone Call Then
         phone_Field = txtPhone.text  ' **Error occurs here**
      Else
         phone_Field = Null
      End If
    End Function

  4. #4
    Join Date
    Nov 2005
    Posts
    403

    Re: Automation Error 440

    It seems that in you code null value is creating some issues i would suggest you to use the following code.

    Code:
    Public Function Phone Call(phone_Field As Field, txtphone As TextBox) As Boolean
     Phone Call = PhoneFormat(txtphone)
     If Phone Call Then
        If Len(txtphone.Text) > 0 Then
        phone_Field = txtphone.Text  ' **Error occurs here**
        Else
        phone_Field = " "
        End If
     Else
        phoneField = " "
     End If
    End Function

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: Automation Error 440

    The cause for getting error 440 might be some setting issue while setting ADO Recordset field for MS Access or else you can also use the following code from which i am sure you won't get any error message again


    Code:
     If txtPhone.text = "" Then
                phoneField = ""
             Else
                phone_Field = txtPhone.text
     End If

Similar Threads

  1. Automation Center’s in Chennai.
    By Micro-Dona in forum Education Career and Job Discussions
    Replies: 3
    Last Post: 13-03-2012, 08:51 PM
  2. Replies: 8
    Last Post: 03-12-2011, 04:13 PM
  3. ieSpell error : Automation server can't create object.
    By Girijaa in forum Technology & Internet
    Replies: 4
    Last Post: 21-02-2011, 10:58 AM
  4. Automation OpenOffice using Java
    By Kohlmann in forum Software Development
    Replies: 4
    Last Post: 28-07-2010, 03:59 AM
  5. AppleScript Automation
    By brickwork in forum Software Development
    Replies: 1
    Last Post: 26-07-2010, 01:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,056,343.51425 seconds with 16 queries