Greetings all.
I have been looking at this code for a bit and I am uncertain of where I have gone wrong. The message box reflects the folder name changes accurately but I never see the counter go beyond 1. This is the only area of the function where the counter value changes. Go figure.
This is part of a function that scans the files in a specified directory and inserts the file names, folder path and other information into a table. I am attempting to create a 'folder group id' for each folder.
If (Trim(TheFolder) = Trim(TheCurrentFolder) = False) Then
TheCurrentFolder = TheFolder
theFolderCount = theFolderCount + 1
If MsgBox("(" & theFolderCount & ",'" & TheCurrentFolder & "')", vbYesNo + vbExclamation,
"Keep Going?") = vbNo Then
End
End If
End If
I have been looking at this code for a bit and I am uncertain of where I have gone wrong. The message box reflects the folder name changes accurately but I never see the counter go beyond 1. This is the only area of the function where the counter value changes. Go figure.
This is part of a function that scans the files in a specified directory and inserts the file names, folder path and other information into a table. I am attempting to create a 'folder group id' for each folder.
If (Trim(TheFolder) = Trim(TheCurrentFolder) = False) Then
TheCurrentFolder = TheFolder
theFolderCount = theFolderCount + 1
If MsgBox("(" & theFolderCount & ",'" & TheCurrentFolder & "')", vbYesNo + vbExclamation,
"Keep Going?") = vbNo Then
End
End If
End If