Hyperlink Help

H

hotplate

Hi,

Here is what I am trying to do:
I have a check box with an after update if the check box is checked
then the value of a hyperlink is something like:
If Me![Checkbox] = -1 Then
Me![Hyperlink] = "U:\Network Folder\Issues\" & Me![ID]
Else
Me![Hyperlink] = ""
End If

The problem I have is that it is entering the hyperlink as text to be
displayed, and there is no value for the address. How would I create
the hyperlink address not just the text to be displayed?

And for a bonus.....
Is it possible to create the folder when the check mark is checked?

James
 
G

Guest

For the hyperlink part of your question, the following works fine for me on
my db.

DocPath= "C:\Temp\DocName1.xls"
FileName = Dir(Docpath)
Me.FieldName= FileName & "#" & Docpath & "#"

Is your field properly setup as a hyperlink? In the table as well?

To make a directory simply use Mkdir

Example:
MkDir then the path
MkDir "C:\Storage"

Daniel
 
H

hotplate

For the hyperlink part of your question, the following works fine for me on
my db.

DocPath= "C:\Temp\DocName1.xls"
FileName = Dir(Docpath)
Me.FieldName= FileName & "#" & Docpath & "#"

Is your field properly setup as a hyperlink? In the table as well?

To make a directory simply use Mkdir

Example:
MkDir then the path
MkDir "C:\Storage"

Daniel

hotplate said:
Here is what I am trying to do:
I have a check box with an after update if the check box is checked
then the value of a hyperlink is something like:
If Me![Checkbox] = -1 Then
Me![Hyperlink] = "U:\Network Folder\Issues\" & Me![ID]
Else
Me![Hyperlink] = ""
End If
The problem I have is that it is entering the hyperlink as text to be
displayed, and there is no value for the address. How would I create
the hyperlink address not just the text to be displayed?
And for a bonus.....
Is it possible to create the folder when the check mark is checked?


I appreciate the help. Everything works now.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top