Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / FoxPro / Forms / July 2008

Tip: Looking for answers? Try searching our database.

Refreshing a listbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bnmohan - 26 Jul 2008 10:36 GMT
Hi!

I have a listbox whose data source is an SQL Query : sele abcd from defg dist
When defg is updated with a new record, the new value of abcd does not appear
in the listbox when the listbox is called again, unless the form is killed
and reloaded.

I am sure there is something simple I am missing.

Any advice?

Mohan
Stefan Wuebbe - 26 Jul 2008 10:49 GMT
> Hi!
>
> I have a listbox whose data source is an SQL Query : sele abcd from defg dist
> When defg is updated with a new record, the new value of abcd does not appear
> in the listbox when the listbox is called again, unless the form is killed
> and reloaded.

Hi Mohan -

Assumed you are using RowSourceType=3, try yourListbox.Requery()

hth
-Stefan

Signature

|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
 - /  See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------

bnmohan - 26 Jul 2008 13:25 GMT
Hi Stefan!

Very sad. I did not see that.

Thanks a great deal

Mohan

>> Hi!
>>
[quoted text clipped - 9 lines]
>hth
>-Stefan
Stefan Wuebbe - 26 Jul 2008 14:09 GMT
You're welcome.

-Stefan

> Hi Stefan!
>
[quoted text clipped - 17 lines]
>>hth
>>-Stefan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.