Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transaction
Message
From
11/03/2010 05:49:22
Muthu Vel
Sty Company
India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Transaction
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01453876
Message ID:
01453876
Views:
92
In my Bank project, I had create two tables namely 1.Deposit 2.withdrawal. deposit with fields 1.accno 2.Date 3.Deposiamt and withdrawal with fields 1.accno 2.date 3.chequeno 4.Withdrawalamt.

I want to process transaction of particular Accno. so i had create transaction cursor with fields 1.Accno 2.Date 3.Chequeno 4.Depositamt 5.withdrawalamt 6.balance. In my transaction form i had put one command button namely "cmd transaction". In click event of transcation button i written code below

INSERT INTO TRANSACTION (DATE,DEPAMOUNT) SELECT DATE,DEPAMOUNT FROM DEPOSIT WHERE ACCNO=thisform.comboAccountNo.value AND DATE BETWEEN ctod(thisform.datefrom.value) AND ctod(thisform.datefrom.value)

INSERT INTO TRANSACTION (DATE,Withdrawalamt, chequeno) SELECT DATE,withdrawalamt,chequeno FROM WITHDRAWAL WHERE ACCNO=thisform.comboAccountNo.value AND DATE BETWEEN ctod(thisform.datefrom.value) AND ctod(thisform.datefrom.value)

the above code gives only transactions of particular accno between two dates without balance but I want to calculate balance amount also.

How to do this
Reply
Map
View

Click here to load this message in the networking platform