chris01252
Registered User.
- Local time
- Today, 04:44
- Joined
- Feb 27, 2007
- Messages
- 43
Hi Everyone
I have just solved one problem concerning creating hyperlinks based on values in other fields: See Previous Thread
but now I have another, the hyperlink I have created links to a document, while for the majority of time it is a word document it is not always, occasionally .xls or .pdf
So I need a way of building into the hyperlink code the file extension, my thoughts are it would involve check boxes and if statements (one check box for each) but I am unsure of how to do this, can anyone help?
My code is currently:
Private Sub H_Enter()
Form!H = "hyperlink#C:\Documents and Settings\cew1\My Documents\WORK\Specs\" & Form!S & Form!PC & ".doc#"
End Sub
I have just solved one problem concerning creating hyperlinks based on values in other fields: See Previous Thread
but now I have another, the hyperlink I have created links to a document, while for the majority of time it is a word document it is not always, occasionally .xls or .pdf
So I need a way of building into the hyperlink code the file extension, my thoughts are it would involve check boxes and if statements (one check box for each) but I am unsure of how to do this, can anyone help?
My code is currently:
Private Sub H_Enter()
Form!H = "hyperlink#C:\Documents and Settings\cew1\My Documents\WORK\Specs\" & Form!S & Form!PC & ".doc#"
End Sub