MYRTOS
MIS
- Sep 16, 2005
- 4
I have 4 cols in my DataGrid1
EmplCode,EmplName,OccCode,OccDescr
Please,
when I change the 'OccCode' in DataGrid1 the table [Employees] is updated but the the next col 'OccDescr' that comes from the joined table [Occupations] is not refreshed right away!!!
Next is the way The Datagrid1 is initialized.
Private Sub Form_Load()
Set rsE = New ADODB.Recordset
rsE.Open "sELECT e.EmplCode,e.EmplName,e.OccCode, o.descr AS OccDescr " _
& "FROM [Employees] e " _
& "left outer JOIN [Occupations] o ON o.CODE = e.OCCUP order by e.EMPLCODE " _
, cnWG, adOpenStatic, adLockOptimistic
Set DataGrid1.DataSource = rsE1
' End With
End Sub
EmplCode,EmplName,OccCode,OccDescr
Please,
when I change the 'OccCode' in DataGrid1 the table [Employees] is updated but the the next col 'OccDescr' that comes from the joined table [Occupations] is not refreshed right away!!!
Next is the way The Datagrid1 is initialized.
Private Sub Form_Load()
Set rsE = New ADODB.Recordset
rsE.Open "sELECT e.EmplCode,e.EmplName,e.OccCode, o.descr AS OccDescr " _
& "FROM [Employees] e " _
& "left outer JOIN [Occupations] o ON o.CODE = e.OCCUP order by e.EMPLCODE " _
, cnWG, adOpenStatic, adLockOptimistic
Set DataGrid1.DataSource = rsE1
' End With
End Sub