Dec 20, 2000 #1 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?
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?
Dec 21, 2000 #2 foxdev Programmer Feb 11, 2000 1,995 US I think you can GOTO the specific record and that will do it, if the combo is bound to the table. Robert Bradley http://www.foxdev.com/ Upvote 0 Downvote
I think you can GOTO the specific record and that will do it, if the combo is bound to the table. Robert Bradley http://www.foxdev.com/
Dec 21, 2000 #3 Creeder Programmer Jul 5, 2000 110 MY 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 Upvote 0 Downvote
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