last record on cmobo box

S

SalimShahzad

dear gurus,

can any one help me to how to store progrmatically last value in combo
box. say i load access form. but in combo box the last value how it
will come

any ideas...as i need only programatically

regards,

shahzad
 
D

Dan Artuso

Hi,
This expression will give you the 'last' value in the combo.
Just adjust the column number to get the value of the column that you want:
MsgBox Me.cboCust.Column(1, Me.cboCust.ListCount - 1)

and substitute the name of your combo.
 

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