Advertisement

06.25.2008 at 02:32PM PDT, ID: 23516344
[x]
Attachment Details

Adding record with code to Hyperlink datatype in Table

Asked by strong-daniel in Access Coding/Macros, Microsoft Access Database, Access Architecture/Design

Tags: Access 2003, VBA

I have a list box that is plugged into a table with that only has one field, it is a hyperlink field.  

I want to give the user the option of adding a new hyperlink to the listbox.  Which means, adding a new record to the table the listbox is plugged into.

Once the user clicks the "Add Hyperlink" button, I have it pop open a new form with 2 textbox's and a button.

The first textbox is the hyperlink name or text that is displayed, the second textbox is for the URL.  

Can someone give me some sample VBA code on how to add the strings for the 2 textbox's to a hyperlink field?  

Not sure how to do it...  Not real good with Access yet.   I am using Access 2003.   I noticed in order to get the URL correctly out of the hyperlink field, you have to use HyperlinkPart method and it parses the database record that is hyperlink type.  

Thanks...Start Free Trial
[+][-]06.25.2008 at 03:41PM PDT, ID: 21870472

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Access Architecture/Design
Tags: Access 2003, VBA
Sign Up Now!
Solution Provided By: strong-daniel
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628