All,
I have a button on a form that works, which allows me to make a folder in a specific location using a field “Directory” as the name of the new folder. I now need to move this button to a view.
I added in some more code to the one that is working trying to get it to work in a view, but so far I haven’t had success.
I have the following code (see bottom) which is giving me a Type Mismatch. I have turned on the debugger but it only tells me the same Type Mismatch. I have viewed other code trying to see what I might be missing or what I might try.
I think the mismatch occurs with the valor statement, but do not know how to fix/change this to determine if that is true.
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim valor As Variant
Set session = New NotesSession
Set db = session.CurrentDatabase
Set view = db.GetView( "Admin Assis" )
Set doc = view.GetFirstDocument
valor = doc.GetItemValue( "Directory" )
Mkdir "C:\Documents and Settings\terico\My Documents\Test\" + valor
End Sub
Any help is greatly appreciated.
TIA
Teri