Solved

complex question

Posted on 2002-05-14
8
139 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
Comment Utility
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
Comment Utility
this is not my homework
0
 
LVL 45

Accepted Solution

by:
aikimark earned 75 total points
Comment Utility
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
Comment Utility
i've found the answer
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
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
Comment Utility
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
Comment Utility
sory about the late....you've answered my question
0
 
LVL 45

Expert Comment

by:aikimark
Comment Utility
glad I helped.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

11 Experts available now in Live!

Get 1:1 Help Now