MS code example...

  • Thread starter Thread starter Adam
  • Start date Start date
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.
 
Back
Top