Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old March 20th, 2004, 04:53 PM
alaras alaras is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 12 alaras User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Help with VB

"I need to create a hyper link dynamically (selecting a part of the hyperlink string from a field in the Access DB) within Access and put it on a form or report. What is the best approach for this??
So the steps are: select a field from a table and then concatenate a folder name (just a hardcoded string) with that (just retrieved) field. The result of the concatenation will be my hyperlink (looks something like this: "c:\test\bill.pdf"). And then this link will be shown in the form. When running it and clicking on it, it should popup the pdf

hope someone can help this is urgent!
Cheers

Reply With Quote
  #2  
Old March 31st, 2004, 03:31 PM
mel mel is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 mel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
use the Ampersand to concantenate

Select TableFields from TableName where TableField = what you want

NameOfField=!TableField

FolderName = your hardcoded string

hyperlink = "c" & "\" & FolderName & "\" & NameOfField

txtText.text = hyperlink

You could also have the user scroll to location using a CommonDialogue
box thats in tool bar of VB

Hope this helps

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Help with VB


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway