Solved

complex question

Posted on 2002-05-14
8
140 Views
Last Modified: 2010-05-02
I have "transaction file.txt" that contains cust id, trans type(W=withdrawal,i=interest, d=deposit), and amount of transaction , here is the sample:
(this file must be read line by line)
123
D
20
123
W
10
123
i
40
124
D
40
124
W
20

I also have old master file in excel, contains cust id, name and current balance, here is the sample:

cust id  name   curr balance
123      john     500
124      marry    600

what i want is to have the updated master file after being processed with transaction file (new balance=curr balance + deposit + interest - withdrawal). The code must be done in MS Excel

0
Comment
Question by:xaveboyz
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 7010512
Do you have any code for this or do you expect it to be done for you? If you have a specific problem then we would be happy to help but this site is not here to get your work/homework done for you!
0
 

Author Comment

by:xaveboyz
ID: 7010950
this is not my homework
0
 
LVL 45

Accepted Solution

by:
aikimark earned 75 total points
ID: 7010994
Example:
Note -- verify all syntax with online help.

filenum = freefile
open transactionfile for input as #filenum
do
 line input #filenum, acct
 line input #filenum, action
 line input #filenum, amt
 activesheet.find "acct"
 select case action
   case "D", "I"
      activesheet.activecell = activesheet.activecell + amt
   case "W"
      activesheet.activecell = activesheet.activecell - amt
 end select
loop until eof(#filenum)
0
 

Author Comment

by:xaveboyz
ID: 7011043
i've found the answer
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 43

Expert Comment

by:TimCottee
ID: 7011128
If you found the answer, please post it here rather than delete the question. It may be valuable for other users. You can always have a moderator reduce the points on this question to zero so you don't lose out by it. Just post a zero point question in http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt with the URL of this question. Obviously you have to post your solution first.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7765534
Hi xaveboyz,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept aikimark's comment(s) as an answer.

xaveboyz, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Author Comment

by:xaveboyz
ID: 7765692
sory about the late....you've answered my question
0
 
LVL 45

Expert Comment

by:aikimark
ID: 7766407
glad I helped.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now