Solved

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

Posted on 2002-04-17
3
504 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

710 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