Hi everyone I'm new to the forum.
I'm a student working as a IT-Support for an office at my university.
I have no expericence with Microsoft Access and suddenly have to debug this error...
We had a power cut last week and there is now a problem with Microsoft-Access.
This is the code:
and the error seems to be at line "Set qdf = db.QueryDefs("Teilnehmerliste")"
As I mentioned above I have no experience with Access so I have no idea why or how did it happen, any help is much appreciated
I'm a student working as a IT-Support for an office at my university.
I have no expericence with Microsoft Access and suddenly have to debug this error...
We had a power cut last week and there is now a problem with Microsoft-Access.
This is the code:
Code:
Sub update_Teilnehmerliste()
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Dim strSQL As String
Set db = CurrentDb()
Set qdf = db.QueryDefs("Teilnehmerliste")
strSQL = "SELECT " & _
" s.Nr, s.Anrede, s.Vorname," & _
" s.Name, s.Email, s.[Matrikelnummer (Gasthörende: Bitte schreiben Sie GAST)]," & _
" s.[Fachsemester (Gasthörende: Bitte schreiben Sie GAST)], s.[Angestrebter Abschluss]," & _
" s.[Studiengang (Gasthörende: Bitte schreiben Sie GAST)], s.[Verwendung des Leistungsnachweises]," & _
" s.Benotung, s.[Leistungspunkte (LP)/ECTS], s.Semester, s.Seminar, s.Dozent, s.Warteliste, s.NimmtTeil" & _
" FROM Studenten s WHERE s.Seminar = '" & Me!Seminar.Value & "'" & _
" AND s.Semester = '" & Me!Semester.Value & "'" & _
" AND s.Dozent = '" & Me!Dozent.Value & "'" & _
" ORDER BY s.NimmtTeil, s.Warteliste, IIF(s.Warteliste IS NOT NULL, s.Nr, s.Name)"
qdf.SQL = strSQL
Me.subform.Form.RecordSource = strSQL
Me.subform.Form.Requery
Set db = Nothing
Set qdf = Nothing
Me.refresh
End Sub
As I mentioned above I have no experience with Access so I have no idea why or how did it happen, any help is much appreciated