J
John Dinning
Hello All,
I want to insert a single record in a table, using values selected from 2
other
tables, but cannot find the right syntax.
Is this possible in Access?
This is as close as I have come:
INSERT INTO CourseStudent
(SC_CourseID,SC_StuID)
SELECT
(SELECT Course_ID FROM Course WHERE Course_Code = :Course_Code),
(SELECT Stu_ID FROM Student WHERE Stu_Number = :Stu_Number)
Access gives me the error 'Reserved error (-3025); there is no message for
this error'.
I have not been able to find any example of a similar query, but I am sure
it must be possible.
Any help would be very welcome.
John.
I want to insert a single record in a table, using values selected from 2
other
tables, but cannot find the right syntax.
Is this possible in Access?
This is as close as I have come:
INSERT INTO CourseStudent
(SC_CourseID,SC_StuID)
SELECT
(SELECT Course_ID FROM Course WHERE Course_Code = :Course_Code),
(SELECT Stu_ID FROM Student WHERE Stu_Number = :Stu_Number)
Access gives me the error 'Reserved error (-3025); there is no message for
this error'.
I have not been able to find any example of a similar query, but I am sure
it must be possible.
Any help would be very welcome.
John.