Hi
I have a datagrid in a form and it supposed to display the continue of a specific table call TblStatus.
In my datagrid I can see each line that represent a record but in these line it have only one column while it supposed to have 3. And this columns and these lines are all empty. I look in the table and my records don't contain any blank fields.
This is my code
Private Sub Form_Load()
OpenDb
Set RsStatus = New ADODB.Recordset
RsStatus.CursorLocation = adUseClient
RsStatus.Open ("Select * From TblStatus"
, MyConn, adOpenStatic, adLockOptimistic, adCmdText
Set DataGrid1.DataSource = RsStatus
DataGrid1.Refresh
Me.DataGrid1.Columns(0).Visible = False
End Sub
Do you have an idea why it does this?
Thanks in advance
I have a datagrid in a form and it supposed to display the continue of a specific table call TblStatus.
In my datagrid I can see each line that represent a record but in these line it have only one column while it supposed to have 3. And this columns and these lines are all empty. I look in the table and my records don't contain any blank fields.
This is my code
Private Sub Form_Load()
OpenDb
Set RsStatus = New ADODB.Recordset
RsStatus.CursorLocation = adUseClient
RsStatus.Open ("Select * From TblStatus"
Set DataGrid1.DataSource = RsStatus
DataGrid1.Refresh
Me.DataGrid1.Columns(0).Visible = False
End Sub
Do you have an idea why it does this?
Thanks in advance