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.