Solved

Parameter intType has no default value.

Posted on 2015-02-18
4
204 Views
Last Modified: 2016-02-10
I am working with a system written in MS Access VBA and SQL. I consistently get the error...

Error Number: -2147217904
Error Description: Parameter intType has no default value.
Location: clsCommon/AllFunction_LoadTotals

Does anyone have an idea about how to resolve this? Or could possibly reveal a better explanation of causes and resolutions?  I have done in-depth analyzing and cannot find a reason why this is happening. Any help would be appreciated.
 Thanks in advance.
0
Comment
Question by:tesla764
  • 2
4 Comments
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 40617590
Would be helpful if we could see the code module that this error is generated in.
0
 
LVL 26

Accepted Solution

by:
Nick67 earned 500 total points
ID: 40617642
Been on the merry-go-round a little earlier this week
Error Number: -2147217904
That's not a nice VBA error number.

SO

Mine was a SQL Server table that had gone read-only.
Yours is different, but still, something you are doing is making the SQL Server toss an error back to you
Parameter intType has no default value. suggests to me that you are calling a stored procedure perhaps and not passing in the correct number of arguments.  The stored procedure itself has no default value for the parameter built in, and therefore the nasty error is boomeranged back to you in Access.

So,
Open the clsCommon  and then in the AllFunction_LoadTotals procedure/function, disable error handling temporarily and drop in some breakpoints.  Run things and see where they fall down.
0
 

Author Closing Comment

by:tesla764
ID: 40619782
Thanks for your help.
0
 
LVL 26

Expert Comment

by:Nick67
ID: 40619789
You're welcome
So, what was the ultimate problem/solution?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now