Hi,
i m facing the problem in the display on MSFlexGrid. For the address display , it will display it on the right side because it start with the house number in digit. Any idea I can solve this out. My coding are:
Public Sub flexgrid()
If rs_e.RecordCount <> 0 Then
G_RowCheck = rs_e.RecordCount
If rs_e.RecordCount > 25 Then
MSFlexGrid1.Rows = rs_e.RecordCount + 1
Else
MSFlexGrid1.Rows = 25
End If
End If
row_counter = 1
MSFlexGrid1.Clear
With MSFlexGrid1
.FormatString = "Enq No." & "|" & " First Name " & "|" & " Last Name " & "|" & " Date " & "|" & " Address " & "|" & "Hourse Phone" & "|" & "Mobile Phone" & "|" & " Email "
End With
While Not rs_e.EOF
With MSFlexGrid1
.Row = row_counter
.Col = 0
.Text = rs_e("EnqNo")
.Col = 1
.Text = rs_e("FirstName")
.Col = 2
.Text = rs_e("LastName")
.Col = 3
.Text = rs_e("EnqDate")
.Col = 4
.Text = rs_e("Address")
.Col = 5
.Text = rs_e("HPhone")
.Col = 6
.Text = rs_e("MPhone")
.Col = 7
.Text = rs_e("Email")
row_counter = row_counter + 1
End With
rs_e.MoveNext
Wend
End Sub
