StreifLicht,
I do not want to confuse and complicate the process you are following, however I thought I would give you something else to think about once you are comfortable with Sesame.
Very soon you will learn that Sesame is not only easy to use but super powerful and will allow you to do most anything you desire.
I have a similar application to what you describe. I store documents on a shared drive and have the sesame application name the document and then place it on that drive. One of the problems my users had was on some records not all the documents were present so they never knew when pressing a button to view if something was there.
Below is a small snippet of code as an example that when entering a client record it looks to see what docs are available, turns a checkbox green or red and makes a command button either visible or not based on if a document is present.
This way the user knows instantly what is available.
I am not sure of the type of documents you are dealing with, however if they are PDf's the people on this board helped me find a method that automatically adds docs to existing types of PDF's so if you add more docs of the same specific type (say additional letters they sent) it just appends the existing pdf.
When and if you need any of these features just ask and we can post up the sbasic snippits.
Enjoy Sesame its a great product!
Subroutine TA_docYN() // checks and updates presence of docs // This checks to see if the completed employee docs form is in the directory and puts a check mark in field element YNEP iF FileExists("s:\EP\" +TA_id+"EP.pdf") // needs to be changed based on working directory { YNEP = 1 RGBColor(YNEP,-1,-1,-1,0,255,0) Visibility(ButtonVEP, 1) Forceredraw() //writeln("Green")
} else {
YNEP = 0 RGBColor(YNEP,-1,-1,-1,255,0,0) Visibility(ButtonVEP, 0) Forceredraw() //writeln("Red") }
// This checks to see if the correspondence docs form is in the directory and puts a check mark in field element YNCOR iF FileExists("s:\COR\" +TA_id+"COR.pdf") // needs to be changed based on working directory { YNCOR = 1 RGBColor(YNCOR,-1,-1,-1,0,255,0) Visibility(ButtonVCOR, 1) Forceredraw() //writeln("Green")
} else {
YNCOR = 0 RGBColor(YNCOR,-1,-1,-1,255,0,0) Visibility(ButtonVCOR, 0) Forceredraw() //writeln("Red") }
End Subroutine
|