Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert into sql query
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01400726
Message ID:
01400728
Views:
59
>how these codes will work in sqL
>
>select accounts
> 
> Locate For code=thisform.code.value
> opbl = opdr-opcr
>  
> sele student
> Set Order To date
> Set Filter To
> Set Filter To code=thisform.code.value
> 
> Goto Top
> Replace balance With 0 All
> Goto Top
> dfgblnc = opbl
> Do While !Eof()
>    dfgblnc = dfgblnc+debit-credit
>     Replace balance With dfgblnc
>     Skip
> Enddo
>
Can you post the structure of the Student table?

From the quick look it seems like 'running total' problem in the Student table which I'm not sure how to solve in VFP by UPDATE query. Using UDF?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform