KeaganQuilty
Registered User.
- Local time
- Today, 16:58
- Joined
- Jun 28, 2001
- Messages
- 51
I've suddenly started getting a strange error. I'm hoping that somebody can tell me what it means.
The error is:
Run-Time Error '62531':
Circular reference caused by alias 'C1' in query definitions SELECT list.
Here's my code.
Private Sub C1_AfterUpdate()
If C1 = True Then
InstructorConflict ("C1")
End If
End Sub
Private Sub InstructorConflict(toggle As String)
If Not IsNull(DCount(toggle, "tblCourses", "[Instructor] = " & Instructor & " AND [" & toggle & "] = True")) Then
If DCount(toggle, "tblCourses", "[Instructor] = " & Instructor & " AND [" & toggle & "] = True") > 1 Then
MsgBox txtName & " is already scheduled to teach another course during " & toggle & ".", , "Conflicting Time"
End If
End If
End Sub
"C1" is one of twenty four toggle buttons that call the InstructorConflict Sub. The other twenty three don't have a problem, only C1. Any ideas? suggestions?
Keagan Quilty
Kilbride, Newfoundland
The error is:
Run-Time Error '62531':
Circular reference caused by alias 'C1' in query definitions SELECT list.
Here's my code.
Private Sub C1_AfterUpdate()
If C1 = True Then
InstructorConflict ("C1")
End If
End Sub
Private Sub InstructorConflict(toggle As String)
If Not IsNull(DCount(toggle, "tblCourses", "[Instructor] = " & Instructor & " AND [" & toggle & "] = True")) Then
If DCount(toggle, "tblCourses", "[Instructor] = " & Instructor & " AND [" & toggle & "] = True") > 1 Then
MsgBox txtName & " is already scheduled to teach another course during " & toggle & ".", , "Conflicting Time"
End If
End If
End Sub
"C1" is one of twenty four toggle buttons that call the InstructorConflict Sub. The other twenty three don't have a problem, only C1. Any ideas? suggestions?
Keagan Quilty
Kilbride, Newfoundland