R
R.Kisoenpersad
hi I'm starting to convert 97 to 2003 but getting compile error
code:-----------------------------------------------------------------------
-------
Private Sub ViewGroup_AfterUpdate()
Dim r As Recordset
Dim S As String
Set r = CurrentDb.OpenRecordset("LCL_Config")
r.Edit
r![ViewGroup] = Me![ViewGroup]
r.update
r.Close
S = "Select distinctrow [LCL_Weergave].[Weergave] from
[LCL_Weergave] where [LCL_Weergave].[group] = '" & Me![ViewGroup] & "'"
Me![Weergave].RowSource = S
Me![Weergave].Value = "Please select a view..."
Me.Requery
end Sub
----------------------------------------------------------------------------
--
when compiling this code it give an error on r.edit
I now that the recordset should be dim r as dao.recordset
but what else is wrong than.
please help me out
Kisoen
code:-----------------------------------------------------------------------
-------
Private Sub ViewGroup_AfterUpdate()
Dim r As Recordset
Dim S As String
Set r = CurrentDb.OpenRecordset("LCL_Config")
r.Edit
r![ViewGroup] = Me![ViewGroup]
r.update
r.Close
S = "Select distinctrow [LCL_Weergave].[Weergave] from
[LCL_Weergave] where [LCL_Weergave].[group] = '" & Me![ViewGroup] & "'"
Me![Weergave].RowSource = S
Me![Weergave].Value = "Please select a view..."
Me.Requery
end Sub
----------------------------------------------------------------------------
--
when compiling this code it give an error on r.edit
I now that the recordset should be dim r as dao.recordset
but what else is wrong than.
please help me out
Kisoen