MS code example...

D

Dirk Goldgar

Adam said:
Can some one tell me how to display more than 4 items for
the MSKB article
http://support.microsoft.com/default.aspx?scid=kb;en-
us;210093.

Everything works, but I can only display 4 items in the
popup, i want 6!

any ideas would be appreciated.

Assuming you have correctly set the list box's RowSource property to
include your six items, you also have to adjust the DoCmd.MoveSize
statement in the function ShowPopup() to correctly specify the adjusted
height of the form. Where the example code had it like this:

DoCmd.MoveSize (coord.x * 14), (coord.y * 14), , 1100

Try changing it to this:

DoCmd.MoveSize (coord.x * 14), (coord.y * 14), , 1750

Trial and error suggests that 1750 is about the right height, but feel
free to tinker with it to make it exactly fit the menu items.
 

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