Solved

find if all values are filled in a column in msflexgrid

Posted on 2014-09-17
2
104 Views
Last Modified: 2014-09-17
I am using a flexgrid in vb6 and I have a column named ProgressSetbacks.  How can I check to make sure everything in the current flexgrid column ProgressSetbacks has a value in it?
0
Comment
Question by:al4629740
  • 2
2 Comments
 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 40329461
Try this. Set the MyCol constant to the ProgressSetbacks column (the first column is 0).    

    Const MyCol = 1
    Dim lngRow As Long
    With MSFlexGrid1
        For lngRow = 0 To .Rows - 1
            If .TextMatrix(lngRow, MyCol) = "" Then
                MsgBox "Incomplete"
                Exit Sub
            End If
        Next
    End With

Open in new window

0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 40329472
I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2014
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

707 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

19 Experts available now in Live!

Get 1:1 Help Now