Solved

find if all values are filled in a column in msflexgrid

Posted on 2014-09-17
2
117 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 47

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 47

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
to transfer string from C lanaguage to VBA 4 77
Getting warning: You are about to delete 1 row(s) 9 53
Excel Automation VBA 19 102
VB script to continue despite error 2 48
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

685 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