Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combo box

Status
Not open for further replies.

jerold

Programmer
Aug 30, 2000
52
PH
Controls:
Form1 (data environment>code: use table1)
> combo1 (source: fields of table1)
button1
click: opens report
close data
sele table1
form1.refresh

Question: How can I make the value of combo1 to be the last value selected?
 
Hi Jerold,

You could do something like this

*-- Will return the number of items in the combo box
lnNumber = THISFORM.combo1.LISTCOUNT

*-- Assign the last item to be selected
THISFORM.combo1.LISTINDEX = lnNumber

That should do it :)

Regards,
Yue Jeen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top