ACC2002: Access Quits After You Change the Case of a Parameter in a Stored Procedure or a Function (295209)



The information in this article applies to:

  • Microsoft Access 2002

This article was previously published under Q295209
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies only to a Microsoft Access project (.adp).

SYMPTOMS

In a Microsoft Access project, when you try to save a stored procedure or function or you click the Stored Procedure Parameters or Function Parameters tab of the property sheet after you change the case of a parameter in the design grid, you receive the following error message, and then Microsoft Access quits:
Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvenience.
When you view the details in the error report, the report says that Microsoft Access caused an error in Vdt70.dll.

RESOLUTION

To work around this problem, make the case changes that you need to make to the parameter in SQL view. To do so, follow these steps:
  1. Open the stored procedure or the function in Design view.
  2. On the View menu, click SQL View.
  3. Make the case changes to the parameter.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

CAUTION: If you follow the steps in this example, you modify the sample Access project NorthwindCS.adp. You may want to back up the NorthwindCS.adp file and follow these steps on a copy of the project.

  1. Start Access.
  2. Open the sample project NorthwindCS.adp
  3. Click Queries under Objects, and then open the Employee Sales By Country stored procedure in Design view.
  4. Type the following value in the design grid in the Criteria column for the Country field:

    =@COUNTRY

  5. Change the Criteria column value for the Country field to the following case: =@Country.
  6. Save the stored procedure by clicking Save on the Stored Procedure Design toolbar.

    Note that you receive the error message that is mentioned in the "Symptoms" section of this article.

Modification Type:MajorLast Reviewed:9/27/2003
Keywords:kbbug kberrmsg kbpending KB295209