Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form query not returning results
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form query not returning results
Divers
Thread ID:
00297441
Message ID:
00297441
Vues:
62
I have a form, with a child table that has 0 or 1 record. From a button, I insert a new record with the correct foriegn key from the parent. In the next line, I select the primary key back from the table.
For some reason, it does not return any results.
p-code as follows:

select roomstbl
scatter fields room_key, maint_key memvar
insert into maint_sched (room_key) values m.room_key
select maint_key from maint_sched where maint_sched.room_key = m.room_key into array temp && the record realy is there!!!
if _tally > 0 && habit when selecting into an array
m.maint_key = temp(1)
endif
etc..
The insert works, the record is there, but _tally always remains 0
I'm stumped, p[leas advice.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform