Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to 'rerun' SQL statement Record Source?
Message
De
05/08/1998 13:45:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/08/1998 13:29:19
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00124108
Message ID:
00124165
Vues:
30
>...
>>>Hi Cetin,
>>>
>>>I'm not sure where I do this. More info... I've got an "Add a new contact" button on FORM1 that calls FORM2 where the user adds a new contact record. Then FORM2's Save button releases FORM2, returning to FORM1. They're now back on my FORM1 with the dropdown lists having SQL statements querying CONTACTS.DBF as recordsources, one of which is named 'cmbATName' for example.
>>>
>>>Where do I run the requery? Sorry to be a pain ;)
>>>
>>>Mandy
>>Mandy,
>>First of all never a pain. Many ways and places to do it in fact but for your detailed case it could be like this :
>>
* Button.click (calling form2)
>>..
>>do form form2  && New contact added
>>thisform.cmbATName.requery() && refresh list on return
Cetin
>
>I tried this by putting the following code in my FORM1 'Add a new contact' button's Click method:
>
>DO FORM addcont
>*!* refresh lists on return
>thisform.pfAgyCont.pContacts1.cmbATname.requery()
>thisform.pfAgyCont.pContacts1.cmbCOname.requery()
>thisform.pfAgyCont.pContacts1.cmbCPCname.requery()
>
>But the lists aren't being refreshed until I close the form and open it again. Any ideas where I can look to make this work? Never easy! ;) And I really appreciate your willingness to help!
>
>Mandy
Mandy,
Is table buffering on ? SQL would only show tableupdated ones.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform