Solved

separate output strings into a flexgrid in order

Posted on 2014-12-06
8
87 Views
Last Modified: 2014-12-07
On the attached project, I have a BlockList form that shows all blocked websites in among several text files.  These text files are located in the test folder.  When clicking "Show Blocked Sites" they output in the Immediate Window, but I would instead like them to output to a Flexgrid for viewing purposes.

For example, execute the program under the BlockedList Form and choose the date range from 11/11/2014 to 11/24/2014 and you will find all the typical results below in the immediate window.


30                adnxs.com: ib.adnxs.com.                           192.168.1.100
3                  blogspot.com: adsense.blogspot.com.       192.168.1.100


However I would like to separate these strings as indicated above into 3 columns in a flexgrid.  Then also list them from greatest to smallest number of blocked sites



Any help is always appreciated.
CB.zip
0
Comment
Question by:al4629740
  • 4
  • 4
8 Comments
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 40485205
Consider this a first draft. I assume you want to summarize the websites but I need some direction on how to do that.
Q-28575780.zip
0
 

Author Comment

by:al4629740
ID: 40485457
Looking great.  It is exactly in the order it should be.

The only thing I'm pondering is what to do when certain sites that come up as

^.*s(3|e)x: expertsexchange.112.2o7.net.

I have to figure out what those sites are
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40485553
Are you implying that you don't want any summarization?
0
 

Author Comment

by:al4629740
ID: 40485852
Sounds good : )  What do you mean by summarization?
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 46

Expert Comment

by:Martin Liss
ID: 40485917
Well I thought there might be duplicates that you'd want added up and shown as one total, but I see now that there aren't any complete duplicates. There are for example a lot that contain "tumblr.com" but none where the second column is exactly the same.
0
 

Author Comment

by:al4629740
ID: 40486041
Is it possible to put the following headers in?

#Blocked          Site             IP Address
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40486154
0
 

Author Comment

by:al4629740
ID: 40486165
Thank you
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

Suggested Solutions

Title # Comments Views Activity
VB6 / DAO 3.6 / run time error: Couldn't find installable ISAM 7 79
Excel - Save a copy of work book 13 83
TT Auto Dashboard 13 85
MS Access 03, TransferText, decimal places 8 47
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…

861 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

24 Experts available now in Live!

Get 1:1 Help Now