Results 1 to 4 of 4

Thread: I'm begining to hate this project

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    12

    I'm begining to hate this project

    Hi, it's me again:

    can anyone tell me why the following code would generate this error:
    run time error -2147217087(80040z21)

    With de.rsCommand1
    If .RecordCount = 0 Then
    .AddNew
    End If
    ***errors out here***
    If Len(Text1(part)) <> 0 Then !Partnumber = Text1(part)
    ***!Partnumber - text1(part) is highlighted***

    when I run this on my system I goes just fine, but when installed on another one, I get the error?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    What's the error description? I couldn't find anything about -2147217087

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    that looks like some kind of automation error. What is part? Are you sure the text1.text is a control array? Also is there any text in the Text1(part).text? If not then the Len() will give an error.

    You should also use Text1(part).Text instead it makes it easier to read.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    12
    text1(Part).text is a textbox that holds an array for my partnumber. There is text typed in it before I try to update the database. My problem is that this code works perfectly when I run it on my system...but when I installed in on a win/95 system I get an automation error (440):

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