Hyperlink on Form

benwo

Registered User.
Local time
Today, 11:38
Joined
Nov 29, 2005
Messages
39
Hi

I've got a a table that contain URL's. On the form i'm displaying the URL as a hyperlink but when i click on the link it does not open a browser.

Any ideas?

Ben
 
EDIT See next post, apologies for total lack of cursor control
 
Last edited:
I've tried this a few ways but the easiest is to:

1. Have the hyperlink in a text box
2. Add a command button to the form.
3. In the forms 'On current' event set the button's hyperlink property to be
the value of the text box.

This seems to work OK but gives little control of how the document is opened but my be Ok for your requirements.

HTH


Kevin
 
Create a label. Put whatever text you want in it.
Right click it and choose "Properties"
Third line down, under the ALL tag, is the "hyperlink address" field.
Put a DLookUp there that references the right spot in the table.
 
Have a look at the attached db sample, I think that this does what you want.
 
Last edited:
Thanks, i downloaded your zip file which works but if i go to a different record it throws up a run time error 490
 
Hi again

I've tried all of these ideas but i've not had any joy yet. the zip file works for the first record in the DB but when i go to the next one it kicks out an error. i have about 3000 records in the DB, each with individual URL's. i need to be able to go from record to record and access the URL. Of course i could copy and paste but i really dont want that!

Any more idea?

Thanks

Ben
 
What do you mean by;

the zip file works for the first record in the DB

Did you extract the zip file to your desktop or some other folder before you tried it?

If you did and that is when you are getting the errors;

Which form are you in when this happens?

When you reply it help if you give as much descriptive information as you can.
 
check out this attachment, this should be clearer. there are 3 records in there. double click the url in the first record and it open fine but in the second and third it contains an error
 

Attachments

You didn't say it was your db that was not working. When you reply let the poster know what is happening. I thought it was my db that was giving you trouble and I am tring to find the fault.

Yours is now working, you had Google enter as;

www.google.co.uk

It should have been;

http://www.google.co.uk

I have make a couple of changes, and as I have given it another name it will not over write your when you unzip it.

The changes are:

Your hyperlinks are blue and underlined.
When you double click the hyperlink the record is saved before it tries to open the link.
The form will maximize when opened.

You can just ignore them if you wish.

Good luck with your project
 
Last edited:
Hi John

Thanks v.much - You've just saved my a$$

Cheers

Ben
 

Users who are viewing this thread

Back
Top Bottom