I have a form containing a listbox (lstGroupList) containing all the subject groups for a particular student (selected in a further listbox) and a listbox containing all the possible groups for the student (lstFullGroupList). I'd like to be able to select an existing group in lstGroupList and a new group in lstFullGroupList, double click on the former (or add a command button) and have the student transferred to the new group. I am using:
However, I'm getting "Enter Parameter value" messages or a run time error depending on the value of the SubjectSetCode. These are defined by another package and inlcude studd like:
11-T/EN (which results in a demand for a non-existent parameter T)
11D/Dr1 which gives a runtime error.
I have tried altering subject codes to remove all punctuation in case that's a problem but am stuck.
Any thoughts gratefully received
Thanks
Code:
DoCmd.RunSQL "UPDATE [Students and Classes] SET [Students and Classes].SubjectSetCode = " & Me.lstFullGroupList _
& " WHERE ((([Students and Classes].StudentClassID)= " & Me.lstGroupList & "));"
However, I'm getting "Enter Parameter value" messages or a run time error depending on the value of the SubjectSetCode. These are defined by another package and inlcude studd like:
11-T/EN (which results in a demand for a non-existent parameter T)
11D/Dr1 which gives a runtime error.
I have tried altering subject codes to remove all punctuation in case that's a problem but am stuck.
Any thoughts gratefully received
Thanks