Solved

Delete a line

Posted on 1998-09-14
1
147 Views
Last Modified: 2010-05-18
I have a file.  I am evaluating some fields in each record.  If these fields = 0 then I need to delete the whole record.  I do not want any blank lines in my file.  How do I delete the record and eliminate blank lines.  
0
Comment
Question by:LJ083198
1 Comment
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 40 total points
ID: 1434830
The only way to delete a record from a file, it to write all records besides it to another file, delelete the original, and rename the copy. You can also leave the record blank, and when you add records, establish an algorythm that will search from empty records, and put new ones instead
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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