WalksWithSky
Instructor
Hello:
I have the following code, but it doesn't seem to do anything. I would like it to create a record in the subform for each record that shows up in the query, but the code literally does nothing -- no error messages, nothing. I was using VB Help for the source of the code.
If anyone can help, it would be greatly appreciated:
Private Sub Attendance_Enter()
Dim dbs As Database
Dim rst As Recordset
Dim strSQL As String
Set dbs = CurrentDb
strSQL = "SELECT * FROM qryStudentClasses WHERE StudenID >0"
Set rst = dbs.OpenRecordset(strSQL)
With rst
Do Until Not .EOF
AddName rst
.MoveNext
Loop
End With
Thanks,
Walks With Sky
I have the following code, but it doesn't seem to do anything. I would like it to create a record in the subform for each record that shows up in the query, but the code literally does nothing -- no error messages, nothing. I was using VB Help for the source of the code.
If anyone can help, it would be greatly appreciated:
Private Sub Attendance_Enter()
Dim dbs As Database
Dim rst As Recordset
Dim strSQL As String
Set dbs = CurrentDb
strSQL = "SELECT * FROM qryStudentClasses WHERE StudenID >0"
Set rst = dbs.OpenRecordset(strSQL)
With rst
Do Until Not .EOF
AddName rst
.MoveNext
Loop
End With
Thanks,
Walks With Sky