U
Uhl
I use a hyperlinkfield called: "Ordner" and I have 2 buttons
1. The first one is to make a directory with a the information from a
field called Nachname. This works fine
2. The second one is to set the link to that directory into the
hyperlink field. I tried 2 different versions
When I copy it in with cut and paste it works. But when I copy it with
the code it looks fine, but when I click on the hyperlink it does not work.
code for 1.) [This works]
With CodeContextObject
MkDir "C:\Users\Bernd\Desktop\Kiz\Kunden\2Schwung\" & Me.Nachname
End With
code for 2.) [This works partly]
With CodeContextObject
..Ordner = "C:\Users\Bernd\Desktop\Kiz\Kunden\2Schwung\" & Me.Nachname & "\"
End With
or [This works partly]
With CodeContextObject
..Ordner = "C:\Users\Bernd\Desktop\Kiz\Kunden\2Schwung\" & Me.Nachname
End With
Thanks
1. The first one is to make a directory with a the information from a
field called Nachname. This works fine
2. The second one is to set the link to that directory into the
hyperlink field. I tried 2 different versions
When I copy it in with cut and paste it works. But when I copy it with
the code it looks fine, but when I click on the hyperlink it does not work.
code for 1.) [This works]
With CodeContextObject
MkDir "C:\Users\Bernd\Desktop\Kiz\Kunden\2Schwung\" & Me.Nachname
End With
code for 2.) [This works partly]
With CodeContextObject
..Ordner = "C:\Users\Bernd\Desktop\Kiz\Kunden\2Schwung\" & Me.Nachname & "\"
End With
or [This works partly]
With CodeContextObject
..Ordner = "C:\Users\Bernd\Desktop\Kiz\Kunden\2Schwung\" & Me.Nachname
End With
Thanks