C
Con
This is my first attempt at coding on vba and have created the following:
I have a field names jsano in my document as a text field, it is a simple
update and it does not execute when the document loads, any help would be
greatly appreciated.
Private Sub Document_Open()
If jsano = "" Then
Open "c:\jsa.ctrl" For Input As #1
Input #1, njsa
Close #1
jsano = njsa
xjsa = njsa + 1
Open "jsa.ctrl" For Output As #1
Write #1, xjsa
Close #1
End If
End Sub
I have a field names jsano in my document as a text field, it is a simple
update and it does not execute when the document loads, any help would be
greatly appreciated.
Private Sub Document_Open()
If jsano = "" Then
Open "c:\jsa.ctrl" For Input As #1
Input #1, njsa
Close #1
jsano = njsa
xjsa = njsa + 1
Open "jsa.ctrl" For Output As #1
Write #1, xjsa
Close #1
End If
End Sub