FormatbyCriteriaSubClass from Stephen Lebans

T

takilroy

Hi,


Has anyone been able to get this example (found here:
http://www.lebans.com/formatbycriteria.htm) to work in Access 2003? I
converted it, and it dies (memory leak it looks like) on exit of the
SubClassFormatByCriteria form during the unhook. If I comment out
unhook, it looks to work, but then using the scrollbar causes the
colors not to follow the row.

Any help would be appreciated.

Thanks,
Teresa
 
S

Stephen Lebans

That solution was written explicitly for A97 and not for A2K or later.
You would need to remove the module level subclassing code into an external
DLL due to a bug with subclassing and the VB IDE.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
T

takilroy

Do you know if there is any way to work around the bug with subclassing
(is it listed on Microsoft anywhere?)? I have a continuous form that
uses the methods you've written and now we are upgrading to Access
2003, so I need to do something.

Thanks,
Teresa
 
S

Stephen Lebans

If you can guarantee that the VB IDE window will never open during the
session, such as running the app as an MDE, then you can simply replace the
call to AddrOf with the native VB AddressOf method.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top