473,394 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Creating a hyperlink to Twitter

2
I'm creating a contacts database for a project I'm currently working on. I have added a field for contacts' Twitter username and set data type as hyperlink.

I would like to make it so that people just have to enter the username (i.e. itvnews) rather than the whole URL (i.e. https://twitter.com/itvnews). But when it's clicked on, it will take you to the URL.

I'm sure Access can do this, but I have no idea how to do it!

Any help would be greatly appreciated.

(I'm using Access 2007)
Oct 9 '14 #1
3 1152
twinnyfo
3,653 Expert Mod 2GB
The simplest method would be to concatenate the hyperlink prefix for the url with the value in the text box, and then execute the hyperlink:

Expand|Select|Wrap|Line Numbers
  1. Private Sub GoTwitter()
  2.     Dim strLink as String
  3.     strLink = "https://twitter.com/" & _
  4.         Me.txtTwitterUserName
  5.     Application.FollowHyperlink strLink
  6. End Sub
Oct 9 '14 #2
franji
2
Hi

Thanks for your help. I kept having issues when I was trying to click on the textbox (formatted as hyperlink) but all fixed when I changed it to text, and created a button to click.

Thanks a lot :-)
Fran
Oct 14 '14 #3
twinnyfo
3,653 Expert Mod 2GB
glad we could be of some help.
Oct 14 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Heinz Müller | last post by:
Hi! I know how to create a new Excel Document in C# and how to fill the WorkSheet with data. But i didn't found any informations how i can insert a hyperlink (for example to...
6
by: epigram | last post by:
I'm using the DataGrid with AutoGenerateColumns set to false and choosing which columns I want in the grid by using the <Columns> attribute. What I want to do is to create a hyperlink out of one...
0
by: chris | last post by:
trouble creating hyperlink 'NavigateUrl' param code is: <asp:HyperLink runat="server" imageurl="img/btndel.gif" Text='Delete Login' NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.PK",...
1
by: thenairboy | last post by:
dear experts, i am doin a small project in c#.net how will i hyperlink an external file from the main form ihave made. for example when we click a button in form an external excel document should...
1
by: Totti | last post by:
Hello, I am new to MS Access (2007) and am trying to create a hyperlink in a table to Google maps without much luck. The URL I need to use in my hyperlink is...
1
HaLo2FrEeEk
by: HaLo2FrEeEk | last post by:
I've been using a PHP Twitter library for months now to automatically repost news that I post on my site, to my site's Twitter. Recently though this stopped working, and I get an error back from...
0
by: raekhan | last post by:
This is my first post on your site, so let me begin by thanking all you geniuses who so thoughtfully and effectively answer frequently asked questions that until now I have been able to find...
1
by: capo5thfret | last post by:
I'm trying to get a blog template set up. It is supposed to pull in my twitter feed. I followed the instructions which only said to input my username into one place...it's not working...it just says...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.