Here's what I've found:
Replacing your form reference with a constant string that includes the path ("C:\DELETEME.TXT"

, and declaring the variables, your code works just fine for me.
Probably Extraneous And Unrelated: I'm not sure what events are calling your code, or exactly how and where your file reference variable f is declared (static? scope?). Which is to say, I realise that I don't have a complete context here. So: I'm not sure why you close #f before you reassign a new number to f and open a new file, since you always close the file opened for saving immediately after saving. Why you do so may not matter or be relevant, and no harm is done by closing a number that hasn't been opened, but I admit my curiosity

.
Definitely Relevant To Your Problem:
You mention *where* the code gives an error, but not *which* error (number and description, please) is given.
Is it a 'Device Unavailable' error (Error #68 in Access 97 VBA), or something similar? Is it a 'Path/File access error' error (Error #75 in Access 97 VBA), or something similar?
You indicate that the form captions include the path. Is the path valid? Check the value of strString right before saving, and make sure the path exists -- either manually in testing, if the path is fixed; or in code "on the fly" by using the Dir command on the path portion of strString, if the path is not fixed.
For instance, if I use the string "W:\DELETEME.TXT", I get the 'Device Unavailable' error (Error #68 in Access 97 VBA), because there is no drive W: on my system. Network drive mappings can often be the culprit in these kinds of cases, if you expect the drive to exist, but it doesn't.
For another instance, if I use the string "H:\Administrator\DELETEME.TXT", I get the 'Path/File access error' error (Error #75 in Access 97 VBA), because although the path exists H:\Administrator on my system, I do not have read/write priveleges to the directory H:\Administrator.
If your error is not one of those I mentioned, post your error here (in this thread, not another), and we'll get back to you.
Good Luck, NatashaXXX, and future readers, -- C Vigil =)
(Before becoming a member, I also signed on several posts as
"JustPassingThru" and "QuickieBoy" -- as in "Giving Quick Answers"
