On Wed, Feb 27, 2013 at 4:47 PM, Desmond Lloyd <[email protected]>wrote:
> Had a problem populating a combo box in December, someone was kind enough
> to recommend using the requery event in combination with a refresh to
> display the first item or record from the query.
>
> Have tried to do that, but no matter what I do it comes up blank. If I
> cliick on the down arrow of the combo box the list is displayed,
> incremental search is turned on and all that works fine.
>
> Can the first item from the list (query) be displayed?
>
> Here is the code I have in the requery event:
>
> select alltrim(company)+' ('+alltrim(custno)+')' as cust,custno from
> mycustfile into cursor pick_cust order by company
> go top
> this.Refresh()
> ----------------
Stuff the keyboard with a F4 or Ctrl+F4 . :)
--
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN
901.246-0159 cell
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/cajidmyjyevfzg3v4qe9-ptzg+i9ejtzd_xdkb28pv0xh0pf...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.