M
MBoozer
I insert a file (pdf) into a field (LocalScanLink) for 2 reasons. 1 is so
that the user can click on it and bring up the pdf file for viewing. The
second, is that the db application is also for the web and a second field
called (filename) takes the name of the file from LocalScanLink and
concatanates it with a url address so the file is also viewable on the web
since it reads something like (http://www.myaddress.com/water.pdf). The code
I have on the LocalScanLink field afterupdate works well at inserting the
filename into the FileName field, however, it inserts it twice, once with the
name (e.g. water.pdf) and then again as (#water.pdf#) so it looks like this
(water.pdf#water.pdf#). Uuuggghhhh! I imagine this is being caused by the
inserthyperlink command. Does it have to be a hyperlink. Can it be a file
name instead? I really need help on this one as I am syntaxed out and have no
more code ideas. Thanks.
If Len(Me!LocalScanLink & "") > 0 Then
Me!FileName = Me!LocalScanLink
Else
Me!FileName = Null
End If
that the user can click on it and bring up the pdf file for viewing. The
second, is that the db application is also for the web and a second field
called (filename) takes the name of the file from LocalScanLink and
concatanates it with a url address so the file is also viewable on the web
since it reads something like (http://www.myaddress.com/water.pdf). The code
I have on the LocalScanLink field afterupdate works well at inserting the
filename into the FileName field, however, it inserts it twice, once with the
name (e.g. water.pdf) and then again as (#water.pdf#) so it looks like this
(water.pdf#water.pdf#). Uuuggghhhh! I imagine this is being caused by the
inserthyperlink command. Does it have to be a hyperlink. Can it be a file
name instead? I really need help on this one as I am syntaxed out and have no
more code ideas. Thanks.
If Len(Me!LocalScanLink & "") > 0 Then
Me!FileName = Me!LocalScanLink
Else
Me!FileName = Null
End If