Пишет ошыбку
Операция не допускается пока объект закрыт
Помогите как полечить?
Adodc1.RecordSource = " " & _
" insert into ifk_certs_print (AdrId, LotId) " & _
" select distinct " & _
" jpm.r_IDAddress2, " & _
" iop.r_IDLot " & _
" from ifk_certs ifk (nolock), " & _
" jourpastmove jpm (nolock), " & _
" invobjpast iop (nolock), " & _
" Documents doc(nolock) " & _
" Where jpm.r_IDInvObjPast = iop.id " & _
" and ifk.LotId = iop.r_IDLot " & _
" and doc.code = '" + Text1 + "' " & _
" and jpm.r_IDDocInst = doc.id " & _
" and ifk.RemarkFlag = 0 "
Adodc1.Refresh