Newbie Needs Help With Hyperlink Code

Mar 11, 2007

I am trying to create a hyperlink from other values in a number of fields, I have found a thread which I think anwers my problem:

Link to Thread (http://www.access-programmers.co.uk/forums/showthread.php?t=124117&highlight=hyperlink)

Only problem I is I don't really understand it. :confused:

e.g.

Dim stGunlib As String
Dim stGunlib2 As String

stGunlib2 = Me![Stock number]
stGunlib = "#http://www.shooting.uk.com/Gunlibrary/" + stGunlib2 + ".jpg#"
Me![Link] = stGunlib
Me![Picture] = stGunlib

What does Dim, Me!, As String mean? and where would this code be entered, is it part of a module or just in the properties of a table/form etc?

Any help on explanations of this would be greatly appreciated!

View Replies


ADVERTISEMENT

Query Code In VBA - Newbie

Oct 5, 2006

In the code of a button, ive got....

Which should be pulling the value in cb1 in the last cat query, but im getting an error saying it cant find the field "|" refered too...

Basically there is a table called Last Cat, and I want to draw the value of cb1 out of it where the catpathid = 5 so i made the query to do that... but now im abit lost....

Me.combo1.Value = [Last Cat Query1]![cb1]

any help would be awesome.

View 1 Replies View Related

Attaching Hyperlink File To An Email Through Code

Dec 4, 2006

A have a table with many records and each record has a hyperlink to a document. Based on some criteria i want to attach the hyperlink file to an email. Don't want to have to do this manually. Is there anyway i can write code to go and get the hyperlink file and then attach the physical file into the email? This could result in 1 file being attached, 13 files being attached, 0 files etc.

Any help would be greatly appreciated.

Cheers,

Combsie.

View 5 Replies View Related

Modules & VBA :: Create Some Code For Button In A Report That Will Follow A Hyperlink To Specific File

Sep 9, 2013

I am trying to create some code for a button in a report that will follow a hyperlink to a specific file. The problem I'm having is that the files that are at the end of the hyperlink can have various extensions (*.doc, *.docx, *.pdf, etc.) I'd like to be able to put a wildcard in the code to allow the opening of the file regardless of the extension.

Code so far:

Private Sub Command6_Click()
Application.FollowHyperlink ("C:UsersjbeggDocumentsAccessTestFolder" & [FileName] & ".*")
End Sub

View 11 Replies View Related

Modules & VBA :: Bulk Update Of Hyperlink Text To Display Not Hyperlink

May 29, 2014

i have thousands of data records with hyperlinks that are correct. Each data record shows the actual link (google.com, foxnews.com, espn.com, etc.). However, i want to change all of the records to just say "link" instead of saying espn.com, etc. How can i do this automatically without having to manually right click, edit, and changing the text to display?

View 6 Replies View Related

Please Review This Code, (simple Code) New With Codes

Feb 16, 2006

Works great, but when I hit the number "3", (3 times in row) it will let me into the form. I want it to not let me in IF I don't know the password.

Where did I go wrong?

Private Sub Form_Load()
Dim pw As Variant

If InputBox("What is the password?", "Password") = "1" Then
Else
MsgBox "Invalid Password", vbCritical, "Sorry Charlie"
DoCmd.Close
If InputBox("What is the password?", "Password") = "2" Then
Else
MsgBox "Invalid Password", vbCritical, "Sorry Charlie"
DoCmd.Close
End If
End If


End Sub

View 14 Replies View Related

Using Code To Unprotect And Protect Viewing Code

Jan 14, 2007

I protect my code from people being able to read it by setting a password on the code from Tools > Properties, selecting the Protection tab and entering a password, and clicking "Lock Project"

Is there a way to write code that will remove that Lock Project check and check it back on?

I've looked through the Application.SetOption command and it doesn't seem to be one of the choices. It would be very helpful if someone knew how to do this.

Thanks

SHADOW

View 6 Replies View Related

Hyperlink?

Dec 2, 2005

I have created a very simple code to fill automaticly an hyperlink field when a text box is updated on a form:

Me.txtHyperlink = "F:DataCPPCPP PDF" & [TxtPipeSize] & "" & [DrawingFile] & "" & [PartNumber] & ".sht" & [TxtSheetNo] & ".Rev" & [TxtRevNo] & ".pdf"

TxtHyperlink is bound to the hyperlink field, when the code is executed the Hyperlink field is filled with the right address. but I think the code just fill the text to display "parameter" of the hyperlink field and not the actual adddress.
what should I do to get the result of the function to be saved as the Hyperlink address?

View 4 Replies View Related

Hyperlink - Need Help

Jun 28, 2007

Hey guys.
I am VERY new to Access, and trying to learn as fast as I can, but I have no idea how to do this.

I have a database, brand new, it will eventually be holding hundreds of docs. Anyway, we have it as a document naming machine. We insert all the data associated with our document, it stores it and gives us a name for the doc, we then save that doc as a pdf with the name given.

After this, we are going to put all the documents in one central folder on our network drive, as follows:

F:FolderAccessDocuments*.pdf

So, what I need is to create an automative hyperlink creater, that will take our document name once created, put it on the end of the "F:FolderAccessDocuments" and have the hyperlink sitting there ready to go.

One more thing, I need to be able to change my Initial Drive Directory (from "F" to "E") at any point in time, and the switch would have to go through and change every hyperlink.

If anyone can help with any part of this problem, I would appericiate it.

Thanks Guys!

Chris

View 4 Replies View Related

Hyperlink

Mar 22, 2008

Hi

is it possible to have a txt field which will contain an email address and once you input teh address it becomes a hyperlink, so you can just click it and send an email from outlook?

View 2 Replies View Related

Hyperlink

Feb 8, 2006

Hello ,
I have ListBox and I have put in ControlSource:
SELECT HorizontalniDrzaciKabela.Referenca, HorizontalniDrzaciKabela.Opis, HorizontalniDrzaciKabela.Visina, HorizontalniDrzaciKabela.Napomena FROM HorizontalniDrzaciKabela WHERE (((HorizontalniDrzaciKabela.PickFlag)=False));

Can I make column HorizontalniDrzaciKabela.Napomena as hyperlinks for each record when I open ListBox?

In design view I put Napomena as hyperlink (I have added hyperlinks) but it will not work,

thank you in advance

View 5 Replies View Related

Hyperlink Help

Sep 25, 2004

I have a Hyperlink field (can be a text field if necessary) that is intended to open the document listed in the field. I have all of these documents stored on a server and I have set up another field that contains the path to the server directory. So, at the time I click on the document link, I want to concatenate the path with the document name, so I can open the file. This will enable me to not have to type the full path everytime I enter a new document name.

I tried setting up the field as a text field and I can concatenate the path and document name, but then I cannot open the file. I want to be able to pass the concatenated variable to the Windows OS and have it launch the document, regardless of the file type.

Any thoughts?

View 2 Replies View Related

Hyperlink To A Form

Apr 20, 2006

I have been searching the forums and all I could find was how to hyperlink to outside url such as www.google.com and likewise.

I am looking for some kind of code or a direction that will help me hyperlink between records in my form.. best method probably would be using an ID number.

Any ideas?

View 2 Replies View Related

Hyperlink Problems, Please Help....

Apr 25, 2005

Hello. New to this, but am creating a hyperlink in a new form. Using Edit Hyperlink, I direct the program to open a PDF format file. All seems fine, the path is relative to the main file, (although it does display %20 between all separate words, why?), but when I click on it, the warning :
"No prgram is registered to open this file". This file itself is fine, and opens happily when dble clicked. The hyperlink works fine when opening a Doc file. Help as I need this working...

View 3 Replies View Related

Hyperlink On A Form

Sep 6, 2005

I want to have a hyperlink on my form, that when clicked it will open a specified webpage. It will be the same hyperlink every time so doesn't need to be stored in the database.

How do I do this?

View 2 Replies View Related

Creating A Hyperlink

Jun 6, 2006

I have an unbound field txtMyField which I want to fill with a hyperlink after entering data in another field. So I put the Is Hyperlink setting to yes, and some code to populate the field. But I cannot click the link. It is just like text.

How can I amend this so that it is clickable?

Thanks,

Dave

View 2 Replies View Related

Hyperlink Decomposition

Jun 6, 2006

I am about to be tasked to redesign a database which is a total dogs dinner.

Everything is wrong basically

I can handle that but there are also some 11000 hyperlinks

Some are relative and some have full path specified, However all have display text.

Is there a way that I can access the specified path and dump this into a text field.

Thought is to create text field alongside the hyperlink field, dump the text value of the hyperlink and I can then manipulate the hyperlink text as I wish.

Is there a function like

Hyperlink_Field.Path

so in an update query I could update the text field to Hyperlink_Field.Path

Len

View 3 Replies View Related

Hyperlink Not Working

Jul 12, 2006

I have a form with a Command button. i have a text box also which is
bound to my
Button. i have created a standard module and created an onclick event
for my button
which is something like this ( if a user clicks on the button it will
give an option
to user to add a file. The Path of that file will be copied to the
textbox which is associated
to my control or button.) i changed the data type also for my textbox
to
Hyperlink so then
when a user clicks on that path which is in the textbox it will
automatically open that document. Well for
some reason it is not working. any
help or suggestions will be really appreciated.
Thanks

View 3 Replies View Related

Jpeg Hyperlink Bug??

Aug 31, 2006

Morning everyone,
I have a really persistant problem with my database whereby whenever I click on a hyperlink (in the database) to a Jpeg file it will display an error message, "unknown file format" then open the file as normal. The access windows then crash.
Has anyone else encountered this problem? If so doe anyone have a solution or a way round it!?
Any help much appreciated, have a good day :)
Matt

View 6 Replies View Related

Hyperlink Security

Aug 23, 2007

Hello - thanks in advance.
I have buttons that link to external WORD and EXCEL files with the hyperlink property. I also use the Application.FollowHyperlink method to open some files.
I find that files with the .txt extension produce a pop up warning, that hyperlinks are potentially unsafe, do I really want to open the file.
If I click YES then the file opens.
It is not consistant. .xls files open without the warning, but .csv files do produce the warning, even though both open in Excel.
I've set the macro-->security option to LOW.
I want to get rid of those warnings if I can.
I've tried docmd.setwarnings false also.
Any idea?

View 1 Replies View Related

Hyperlink Download

Oct 4, 2007

Hi, I think this is only my second post (found i have made a few, lol) in over a year because I can usually find what im after on this site or I just hack stuff together till it works, lol.Anyway my question:How can I download a hyperlink (its an excel spreadsheet, CSV file to be exact i believe) to a certain place and name?I wish to do this roughly once a day for about 10-14 files. then these will be imported to the database. but first thing will be a fairly automated downloader if possible.any third party software will be fine but id rather have access do it with a code behind a button etc. Thankyou for any/all suggestions.

View 14 Replies View Related

Hyperlink Question

Feb 14, 2007

Sorry if this is a basic stupid question but I am new to access and developing a database for my company while I learn access from a book. I am using hyperlink in a table to allow quick access to job folders on our network, but everytime I click the hyperlink it uses windows explorer to open the folder and I would like to avoid this by having the folder opened in a new window, by its self. Windows Explorer opens the door too many mistakes happening so I want my user to see the folder they need to and that is all. I hope that explains it well enough. I greatly appreciate any help.

View 1 Replies View Related

Hyperlink Field

Dec 5, 2007

Is there any way to have a hyperlink field in a table that has a very long path to the file show something different?

Example C:Documents and settingsMy FileOther FileThis Fileme.pdf

Woud like it to simply show "Open File"

Thanks!

Fen How

View 3 Replies View Related

Update A Hyperlink

Apr 6, 2006

Is there any way to edit the hyperlink field in my table, I'm thinking along the lines of an update query?

The database has thousands of records and the user has not typed any text into the 'Display Text' part of the hyperlink. This means that the stored hyperlink is double size because if no text is entered into the display text part then access uses the hyperlink string. This is a problem for me later on in the design.

I have tried a simple update query and this updates the display text as required but also loses the hyperlink itself, which I want to remain unchanged.

Any ideas?

View 1 Replies View Related

Hyperlink To Open PDF

Sep 16, 2005

I have a form with a textbox on it that is populated with the path of a pdf doc associated to the form. How do i get the pdf to open when i click on the path?

thanks..

View 3 Replies View Related

Hyperlink Address

Dec 19, 2005

Hello, I'm trying to add a hyperlink to my form that changes to a different location when the record changes.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved