Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change these codes into sql
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01168938
Message ID:
01168940
Views:
13
Khubaib take a look at your code:
Replace balance With 0 All
and after then
Replace balance With blnc &&& where blnc = blnc+debit-credit
and
Set Filter To code=thisform.code.value &&& is in action
May be you want
update AccTran;
  set Balance = blnc+debit-credit;
  where Code = ThisForm.Code.Value
>these code can be changes into sql
>
>Select accounts
> Locate For code=thisform.code.value
> opbl = opdr-opcr
> Select acctran
> Set Order To date
> Set Filter To
> Set Filter To code=thisform.code.value
> Goto Top
> Replace balance With 0 All
> Goto Top
> blnc = opbl
> Do While !Eof()
>     blnc = blnc+debit-credit
>     Replace balance With blnc
>     Skip
> Enddo
>
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform