Hai one and all,
Kindly guide me to solve the following issue
there is a form for updating students attendance. in that form there is column for Course. based on this field there written "dlookup" function for another field that is total working days in that month.
after entering last student details if i go to next, immediately i am getting "Run time error 94, Invalid use of null is coming and the vba window is getting opened. and there is a yellow mark in the vba code "txtSep = Me.Course.Value"
the code is
Dim wdSep As Integer
Dim txtSep As String
txtSep = Me.Course.Value
wdSep = DLookup("SepWDC", "CoursesSCPM", "ID = " & txtSep)
Me.SepWD.Value = wdSep
Dim wdOct As Integer
Dim txtOct As String
txtOct = Me.Course.Value
wdOct = DLookup("OctWDC", "CoursesSCPM", "ID = " & txtOct)
Me.OctWD.Value = wdOct
Kindly help to solve this issue.