S
serviceman
Hi again,
have a look at this SQL INSERT Statement:
"INSERT ATTENDANCE SELECT 107 as ATT_HDR_ID, STUDENTS.STUDENT_ID AS
STUDENT_ID,2 as EVENT_ID,4 AS LOCATION_ID,'5/10/2006' as EVENT_DAT, '','',0
FROM STUDENTS WHERE STUDENT_ID IN (275,119,135)"
this works great in SQL server, but not at all in Access .mdb...
I've played around with quotes,qoutes, and more #@#$!!!! quotes all morning,
but cannot get this right. The IN values change off listbox values, and they
seem to pass in ok. In SQL server INSERT INTO usually would be for a single
rowset or would need a loop or cursor to advance through each record. Does
Access not use INSERT, or am I missing something stupid?
Andy
have a look at this SQL INSERT Statement:
"INSERT ATTENDANCE SELECT 107 as ATT_HDR_ID, STUDENTS.STUDENT_ID AS
STUDENT_ID,2 as EVENT_ID,4 AS LOCATION_ID,'5/10/2006' as EVENT_DAT, '','',0
FROM STUDENTS WHERE STUDENT_ID IN (275,119,135)"
this works great in SQL server, but not at all in Access .mdb...
I've played around with quotes,qoutes, and more #@#$!!!! quotes all morning,
but cannot get this right. The IN values change off listbox values, and they
seem to pass in ok. In SQL server INSERT INTO usually would be for a single
rowset or would need a loop or cursor to advance through each record. Does
Access not use INSERT, or am I missing something stupid?
Andy