Solved

Error 380: Invalid Property on Windows Server 2003

Posted on 2006-11-24
5
147 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 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