Onderstaande formule werkt thuis wel, maar ergens anders waar ik de gegevens van een server moet halen en het datapad langer is niet. Why??
Private Sub TijdKnop()
If ClientKnop1.Visible = True Then
Dim Cap1 As Variant
Frame1d.Visible = True
Cap1 = Replace(ClientKnop1.Caption, " ", "")
TextBox1a.Text = Format(FileDateTime(DataPad & Cap1 & "\algemene.txt"))
TextBox1m.Text = Format(FileDateTime(DataPad & Cap1 & "\medisch.txt"))
Else: Frame1d.Visible = False
End If
etc.
Private Sub Begin()
Tijdknop
Private Sub TijdKnop()
If ClientKnop1.Visible = True Then
Dim Cap1 As Variant
Frame1d.Visible = True
Cap1 = Replace(ClientKnop1.Caption, " ", "")
TextBox1a.Text = Format(FileDateTime(DataPad & Cap1 & "\algemene.txt"))
TextBox1m.Text = Format(FileDateTime(DataPad & Cap1 & "\medisch.txt"))
Else: Frame1d.Visible = False
End If
etc.
Private Sub Begin()
Tijdknop