S
seeker
What is wrong with this insert into query?
DoCmd.RunSQL "insert into los_service (member_number, los_staff,
los_service_date, los_end_time, service" & _
", locnbr, entered_in_MAF, entry_date, tcm_loc,
los_beg_time, nbr_of_minutes) values(select" & _
" member_number, los_staff, los_service_date,
los_end_time, service, locnbr, entered_in_MAF," & _
" entry_date, tcm_loc from los_service where id = " &
id2 & ", #" & endtime1 & "#, " & _
DateDiff("n", endtime1, endtime2) & ")"
DoCmd.RunSQL "insert into los_service (member_number, los_staff,
los_service_date, los_end_time, service" & _
", locnbr, entered_in_MAF, entry_date, tcm_loc,
los_beg_time, nbr_of_minutes) values(select" & _
" member_number, los_staff, los_service_date,
los_end_time, service, locnbr, entered_in_MAF," & _
" entry_date, tcm_loc from los_service where id = " &
id2 & ", #" & endtime1 & "#, " & _
DateDiff("n", endtime1, endtime2) & ")"