I have 2 msflexgrids on a form the 1st grid populates with data, when a user double clicks on one of the rows the data from that grid moves to the second flexgrid, this works fine however when i unload the form and load it back up again and populate the first grid with data on a double click instead of placing that data in the second grid I get a Subscript out of range error. Can someone please help me with this I have been stuck on this one for a while.

Umm, well I'm currently working with flex grids in vb6 so i will try to help. From the look of things you've got some global variables which are not being initialized on form load. if this is the case either make them local or init them on form load (i'm geussing at an index).
Not much help I suppose, but if you could give some more detail I can possibly be of more help.

Thanks LordWabbit i have already solved the problem and that was it i did not set one of the variables in the form load to zero. But i have another little problem hopefully you can help me with. I have a command button that populates a grid with data only what happens it does not remove all the lines when i hit the command button to display a different customers orders. How do i remove all the rows except for one, i need one blank row. I have attached my code i know its a bit messy but im a starting programmer and this is my first project.

As you can see i have a function in there to remove rows that somebody helped me with but, it dosent really work the way i thought it would. Any help will be greatly appreciated Lordwabbit

Option Explicit
Dim Activation As ADODB.Connection
Dim rsOrder As Recordset
Dim rsCustomer As Recordset
Dim rsBundleHold As New ADODB.Recordset
Dim strCustomer As String
Dim strOrder As String
Dim strName As String 'Variable from Input box to find customer
Dim CustID As String
Dim OrdID As Integer
Dim strAddress As String
Dim strOrdNum As String
Dim strCRD As String
Dim strTCD As String
Dim strStatus As String
Dim newrow As Integer
Dim rownumber As Integer
Dim GRow As Variant
Public gHW As Long
Private Sub cmdPrevious_Click()
With rsCustomer
.MovePrevious
If .BOF Then
.MoveFirst
End If
End With
BindCustomerData
End Sub

Private Sub cmdBundleWait_Click()

Dim strErrorMessage As String
Dim Activation As ADODB.Connection
Dim strSQL As String
Dim i As Integer
Dim OrderNumber As String
Dim rsActEmployee As New ADODB.Recordset
Dim rsRetEmployee As New ADODB.Recordset

Private Sub cmdNext_Click()
With rsCustomer
.MoveNext
If .EOF Then
.MoveLast
End If
End With
BindCustomerData
End Sub
Private Sub cmdViewOrder_Click()
'Displays Customers Orders
Dim i As Integer
Dim Status As String
Set rsOrder = New ADODB.Recordset
Activation.Close

On Error GoTo HandleError
With flexgrid
Do ' run yCtr for all rows
.Row = yCtr ' current row = yCtr
For xCtr = .FixedCols To .Cols - 1 ' run xCtr for all cols
.Col = xCtr 'current column = xCtr
If .Text <> "" Then boolRowFilled = True
' if the text in current row and col is not
' empty, then set boolRowFilled to TRUE
Next ' next xCtr
If boolRowFilled = False Then ' if our bool is false
' that means that we found text in the row and
' we have to ...
If yCtr <= .Rows Then
.RemoveItem yCtr ' ... remove the empty row
' .AddItem flexgrid, yCtr
yCtr = yCtr - 1
End If

Else
boolRowFilled = False ' if it was no blank, then
' we reset
' our boolRowFilled to
' False
End If
yCtr = yCtr + 1

Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program.
Download Eclipse installation zip file:
Extract files from zip file:
Download and install JDK 8:
Open Eclipse and …

In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…