Hello,
If you wish to store the value with each record the code below should work for you
Var vEvent as String
vEvent = @EventState()
If (@AccessStringArray(vEvent, 8) = 1) or (@AccessStringArray(vEvent, 1) = 2) Then
{
If Print = @Chr(82) Then
{
Print = @Chr(163)
}
Else
{
Print = @Chr(82)
}
ForceRedraw()
}
Throwfocus(City)
To recreate the file I used to work with this code follow the steps below
Open Sesame Designer
Open Countries.db
Go in to redesign the Cities form
Add an Unbound Text box at the top of the Form
Make that Text box Read Only and set it's width to 1
Below that but above City, Add a Text box bound to a New Text Field named Print
Set the label of the Print element to be 'P', without the quotes
Set both the Label and Text font of Print to be Wingdings 2
Set the Print element to be Read Only
Place the code above in the On Element Enter event of the Print Element
Save and Preview
-Ray