mmorgensen
MIS
I am having problems with a SQL call. Everytime the program loops i get an error "operation is not allowed when the object is closed". I have to hit "ok" several times, but it looks like everything is working (just the error) as the data is posted to SQL.
<!------- START CODE------->
For i = 1 To lCol_FoundFiles.Count Step 1
On Error Resume Next
Form2.Adodc1.RecordSource = "Insert into Dev(File,ClientID) Values('" & lCol_FoundFiles.Item(i) & "','" & ClientID & "')"
Form2.Adodc1.Refresh
Next i
<!----END CODE---->
Thanks!
mm
<!------- START CODE------->
For i = 1 To lCol_FoundFiles.Count Step 1
On Error Resume Next
Form2.Adodc1.RecordSource = "Insert into Dev(File,ClientID) Values('" & lCol_FoundFiles.Item(i) & "','" & ClientID & "')"
Form2.Adodc1.Refresh
Next i
<!----END CODE---->
Thanks!
mm