Hi I have a button on a main form that is used to switch the recordsource of a subform....
Private Sub cmdSwitchNER_Click()
If Me!cmdSwitchNER.Caption = "Normal NER" Then
Me!cmdSwitchNER.Caption = "Connector NER"
Me!frmNextEvent_sub.Form.RecordSource = "qsel_NER_Normal"
'MsgBox Me!frmNextEvent_sub.Form.RecordSource
ElseIf Me!cmdSwitchNER.Caption = "Connector NER" Then
Me!cmdSwitchNER.Caption = "Normal NER"
Me!frmNextEvent_sub.Form.RecordSource = "qsel_NER_Labels"
'MsgBox Me!frmNextEvent_sub.Form.RecordSource
End If
End Sub
This works in Acces2003 but not in 2007.... Any ideas?
Thanks!!
Private Sub cmdSwitchNER_Click()
If Me!cmdSwitchNER.Caption = "Normal NER" Then
Me!cmdSwitchNER.Caption = "Connector NER"
Me!frmNextEvent_sub.Form.RecordSource = "qsel_NER_Normal"
'MsgBox Me!frmNextEvent_sub.Form.RecordSource
ElseIf Me!cmdSwitchNER.Caption = "Connector NER" Then
Me!cmdSwitchNER.Caption = "Normal NER"
Me!frmNextEvent_sub.Form.RecordSource = "qsel_NER_Labels"
'MsgBox Me!frmNextEvent_sub.Form.RecordSource
End If
End Sub
This works in Acces2003 but not in 2007.... Any ideas?
Thanks!!