Hi all
Using coding I m saving a folder image into a table using field I (text)
It is saving successfully but when I m checking again it showing record count-1
What is the reason behind it
……………
help!!!!!!!!!!


code are


VB Code:
  1. FileName1 = App.Path & "\QuesImages\Chemistry"
  2. If text1.Text <> "" Then
  3.     Set f = Fs.GetFolder(FileName1)
  4.     Set fc = f.Files
  5.     For Each f1 In fc
  6.     S1 = S1 & f1.Name
  7.     S = "SELECT i FROM cheimage where i='" & Trim(S1) & "'"
  8.     Set R1 = Get_Special_Record_Set(S)
  9.     If R1.RecordCount = 0 Then
  10. 'showing record count=-1 here what is the reason HELP ME
  11.         MsgBox "Image " + S1 + " Not Found In Chemistry Folder ThereFore Restore Not Possible", vbInformation
  12.         S1 = ""
  13.         Exit Sub
  14.     End If
  15.     S1 = ""
  16.     Next
  17.     'Restoring The Folder
  18.     objFS.CopyFolder FileName1, text1.Text & "\QuesImages\Chemistry", True
  19. End If