1
1aae
This code close access and display this message
Microsoft Access has encountered a problem and needs to close. We are sorry
for the inconvenience ..etc
How to edit this code to work correct…
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Here
Select Case HidenFrame
Case 1
Me.RecordSource = "Qry1"
Me.cboGroup.RowSource = "QryCL"
Case 2
Me.RecordSource = "Qry2"
Me.cboGroup.RowSource = "QryDL"
Case 3
Me.RecordSource = "Qry3"
Me.cboGroup.RowSource = "QryEL"
Case 4
Me.RecordSource = "Qry4"
Me.cboGroup.RowSource = "QryFL"
End Select
If (Me.RecordsetClone.RecordCount) = 0 Then
Cancel = True
End If
Here:
Exit sub
Resume
End sub
Microsoft Access has encountered a problem and needs to close. We are sorry
for the inconvenience ..etc
How to edit this code to work correct…
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Here
Select Case HidenFrame
Case 1
Me.RecordSource = "Qry1"
Me.cboGroup.RowSource = "QryCL"
Case 2
Me.RecordSource = "Qry2"
Me.cboGroup.RowSource = "QryDL"
Case 3
Me.RecordSource = "Qry3"
Me.cboGroup.RowSource = "QryEL"
Case 4
Me.RecordSource = "Qry4"
Me.cboGroup.RowSource = "QryFL"
End Select
If (Me.RecordsetClone.RecordCount) = 0 Then
Cancel = True
End If
Here:
Exit sub
Resume
End sub