ACC2: GPF Using List Box Fill Function with Requery Method (117615)
The information in this article applies to:
This article was previously published under Q117615 SYMPTOMS
When you fill a list box using an Access Basic function, and the function
returns a static variable upon receiving the close code (8), and you then
use the Requery method to requery the list box, you receive a general
protection (GP) fault.
CAUSE
The temporary string created by the list box fill function is not freed,
and conflicts with another variable used internally by Microsoft Access.
RESOLUTION
Use one of the following techniques to work around this problem:
- Use a Requery action instead of the Requery method for requerying the
list box.
- Do not return a static string when your function exits through the close
code (8). That is, dimension the variable to make it dynamic, rather
than declaring it static.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access version
2.0. We are researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
REFERENCES
For more information about using Access Basic code to fill a list box,
search for "filling list boxes/combo boxes" then "Filling a List Box or
Combo Box Using an Access Basic Function" using the Microsoft Access Help
menu.
Modification Type: | Major | Last Reviewed: | 11/6/2000 |
---|
Keywords: | kbbug kberrmsg kbprogramming KB117615 |
---|
|