Hello Kevin
You can change Carl's code to do that with something like...
Var Success as int
FormCommit("")
ClientLocalValue("PrintForm", "Current")
If @Add
Success = @SelectTreeItem("Add Data Menu!Switch to an Alternate Form!Printable EMPLOYER")
Else If @Update
Success = @SelectTreeItem("Search Update Menu!Switch to an Alternate Form!Printable EMPLOYER")
for printing only the current record and
var Success as int
If @ClientLocalValue("PrintForm") <> "" Then
{
// Print the form
If @ClientLocalValue("PrintForm") = "Current" Then
{
Success = @PrintAForm(0, 1, 1, 1, 28, 0, 0, 0, 0, 1, 1)
}
Else If @ClientLocalValue("PrintForm") = "All" Then
{
Success = @PrintAForm(1, 1, 1, 1, 28, 0, 0, 0, 0, 1, 1)
}
ClientLocalValue("PrintForm", "")
// Return to original form
If @Add
Success = @SelectTreeItem("Add Data Menu!Switch to an Alternate Form!EMPLOYER")
Else If @Update
Success = @SelectTreeItem("Search Update Menu!Switch to an Alternate Form!EMPLOYER")
}
in on Form Entry. The Code to print all would be the same as the code to print 1 just with "All" in the ClientLocalValue() instead.
-Ray