Solved

Error 380: Invalid Property on Windows Server 2003

Posted on 2006-11-24
5
150 Views
Last Modified: 2013-11-26
Hi Everybody!

Currently I'm programing an Interface kind of program that works fine on every OS I test it, but when it comes to Windows Server 2003 I get the 380: Invalid Property Error.

The wierd thing is that according to my debugging logs, the error occurs at a line that checks if a recordset is at EOF.

I'm using the following parameters:

    My machine:
        - OS: Windows XP Professional
        - IDE: Visual Basic 6.0 SP6

    Target Computer:
        - OS: Windows Server 2003 Standard
        - Database: Microsoft SQL Server 2000 SP4

    Code:
        - Database Control: DB1: Adodc
        - Connection String: "Provider=sqloledb;Data Source=localhost;Initial Catalog=MyDB;User Id=Me;Password=Me;"
       
        - Code Extract:
                    'Load Parameters (OK)
                    'Display Forms and Controls (OK)
                    'Get Files via FTP (OK)
                    DB1.Recordsource="Select * From MyTable;"
                    DB1.Refresh
                    If DB1.Recordset.EOF then
                        MsgBox("No Records.")
                    End If

When the program gets to the If line, I get the 380: Invalid Property Error.

I don't have Visual Basic IDE installed on the Target machine, but that's the last thing I want to do, only if nothing else works...

Any help will be very appreciated!! Thanks in advance.
0
Comment
Question by:smaldona
5 Comments
 
LVL 9

Expert Comment

by:pradapkumar
ID: 18007134
 DB1.Recordsource="Select * From MyTable;"
                    DB1.Refresh
                    If DB1.EOF then
                        MsgBox("No Records.")
                    End If

try the above one.
0
 

Author Comment

by:smaldona
ID: 18010102
Finally got it myself... after a full day of debugging I found out I mistyped a proerty value when logging to the Event Viewer, and I didn't set the Explicit Option...

Sorry to bother you all...

Thanks anyway!!
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18449450
PAQed with points refunded (125)

DarthMod
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question