Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6.0(SP3) AND SQL6.5
Message
De
02/11/2000 01:41:52
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, Afrique du Sud
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
VFP 6.0(SP3) AND SQL6.5
Divers
Thread ID:
00437018
Message ID:
00437018
Vues:
76
Hi All

YET ANOTHER WEIRD RESPONSE!!!
I have a table called Assets with fileds named
Asset_no, Sub_no,Trans_sold, Sell_Date,Sell_price,Sell_reason

I have records like as in the above fileds :
00001,0, , , , ,
00001,1, , , , ,
00001,2, , , , ,
00002,0, , , , ,
00003,0, , , , ,
00003,1, , , , ,


When i Dispose of the asset I replace Trans_sold with "S", sell_date with a date,sell_price with a figure, and sell_reason with a code.

When I want to dispose of say for e.g asset_no '00003' and sub '1'
SQL 6.5 automatically disposes of both 00003,0 and 00003,1
WHY DOES IT DO THIS?

My statement reads :
masnum = '00003'
msub = '1'
select assets
set filter to asset_no = masnum .and. sub = msub
REPLACE trans_sold with 'S' for asset_no = masnum .and. sub = msub
replace sell_date with date() for asset_no = masnum .and. sub = msub
replace sell_price with 123.12 for asset_no = masnum .and. sub = msub
.....etc
set filter to


Thanks in advance
Fida
Wannabe FoxPert!!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform