Solved

"Type name is invalid" error when executing stored proceedure.

Posted on 2002-04-17
3
496 Views
Last Modified: 2012-06-27
   
When executing the following code.  I get an error "Type name is invalid" #-214?????? on the last line. The command object is executing a stored proceedure on a SQL server 2000 database.  The odd thing is that this code works flawlessly on the development machine but errors on test machines.

    dim LastUpdateStamp as long
    Dim UpdateCheckCmd As New ADODB.Command
    Dim UpdateTbl As New ADODB.Recordset
   
    UpdateCheckCmd.CommandText = "LookForUpdate"
    UpdateCheckCmd.CommandType = adCmdStoredProc
    UpdateCheckCmd.ActiveConnection = NetDB
    UpdateCheckCmd.Parameters.Refresh
    UpdateCheckCmd(1) = LastUpdateStamp
   
    Set UpdateTbl = UpdateCheckCmd.Execute

Are the test machines missing resources? Any ideas would be appreciated

thanks
0
Comment
Question by:millbor5
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 100 total points
ID: 6949017
Hi millbor5,

Do you have the same mdac version installed on production and development?

:O)Bruintje
0
 

Author Comment

by:millbor5
ID: 6949089
thanks friend
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6949101
glad it helped, and thanks for the grade :)
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 42
VB 6.0 printer how to align 6 62
Best way to parse out a json string in VB6? 10 169
passing a value with stream reader AFTER a ";" 3 67
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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

773 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