I set up a optionGroup box called Type which has 5 different type, and a combo box called FindRecord which shows 2 fields consists of SRM NO & Type.
When user select a SRM NO(Text) to find an existing record, the type optionGroup should reflect the type automatically correspond to the one in combo Box, the code below doesn't work, no matter where I placed this statement: Me!Type = Me!FindRecord.Column(1), it keeps prompting me to save record, even I save it, it still not working.
If I add a new record, the type I select in optionGroup doesn't get loaded into the type column in the table either.
Any help would be greatly appreciated.
Private Sub FindRecord_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SRM No] = '" & Me![FindRecord] & "'"
Me.Bookmark = rs.Bookmark
Me!Type = Me!FindRecord.Column(1)
End Sub
When user select a SRM NO(Text) to find an existing record, the type optionGroup should reflect the type automatically correspond to the one in combo Box, the code below doesn't work, no matter where I placed this statement: Me!Type = Me!FindRecord.Column(1), it keeps prompting me to save record, even I save it, it still not working.
If I add a new record, the type I select in optionGroup doesn't get loaded into the type column in the table either.
Any help would be greatly appreciated.
Private Sub FindRecord_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SRM No] = '" & Me![FindRecord] & "'"
Me.Bookmark = rs.Bookmark
Me!Type = Me!FindRecord.Column(1)
End Sub