Add a backslash after Folder2
My mistake. I did.
Kill "C:\Folder1\Folder2" & '" & strCustID & "'"
Kill "C:\Folder1\Folder2\" & lngCustID
Click the # icon and post between the tags, then look to see what is generated.Can you give me an example of using code tags.
strCustID = Forms!frmMain!frmMainSub!Form![COLOR="Red"]control[/COLOR]
Kill "C:\Folder1\Folder2\" & '" & strCustID & "'"
#
strCustID = Forms!frmMain!frmMainSub!Form!control Kill "C:\Folder1\Folder2" & '" & strCustID & "'"
#
Like this?
Also, the control is not named control
To do so, use the # button in the toolbar above your post.
If you can't see it, click the Advanced button
"C:\Folder1\Folder2\"
"C:\Folder1\Folder2\" & strCustID
Got it.
Code:strCustID = Forms!frmMain!frmMainSub!Form![COLOR=Red]controlname[/COLOR] Kill "C:\Folder1\Folder2\ " & '" & strCustID & "'"