Hi,
I have a continuous form in Access 2003.
I am using the following code:
Code:
Private Sub Form_Current()
Dim answer As String
Dim stParam As String
answer = False
stParam = "S:\scandb\" & Forms![VIEW_PDF_STATUS]![COUNTY] & "\" & Forms![VIEW_PDF_STATUS]![Text82] & "_V" & Forms![VIEW_PDF_STATUS]![VOL] & "_P" & Forms![VIEW_PDF_STATUS]![PAGE] & "_ID" & Forms![VIEW_PDF_STATUS]![ID] & ".pdf"
If Dir(stParam) = "" Then
answer = False
Else
answer = True
End If
Me.Label79.Visible = answer
Me.Repaint
End Sub
I am trying to display label79 if the code finds that the file exists.
What happens is that it doesn't display label79 until I click where label79 should be showing up. That is only on a record that is flagged as true.
When it does display, it shows up for all the records. I am confused!!
Here is an example in which record 209 is the only one that will be flagged as true:
Before click:

After click:

The above happens when I click the blank space where "PDF Attached" should be displayed.
I want it to show up without clicking anywhere and only on the record flagged as true.
Thanks in advance for the help,
John