S
S
shokw0w2016-10-12 08:43:54
Microsoft Access
shokw0w, 2016-10-12 08:43:54

How to register the first element of the list in the event procedure?

In the marks table, you must specify the student id, the id of the assessment criterion, and the assessment itself. I wrote the following in the "Save marks" button:
Dim strSQL, gradeSQL As String
strSQL = " Insert Into marks(criteriaid, userid, finalgrade) values ​​('" & Me.criteria & "', '" & Me.student & "', '" & Me.mark & ​​"');"
CurrentProject.Connection.Execute(strSQL)
MsgBox("Added!").
The problem is that one record will be added to the table, but you need to duplicate the student id and add the rest of the grades.
dc180e6adfab47799fe23c4189932705.png38cb8ad3234b4ec3ab3714f0e5a10736.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2016-10-12
@freeExec

Well, you have values ​​in insert for only one row, what do you want. So screw the cycle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question