last record on cmobo box

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