Hello everyone,
I've been working on this for a bit and wonder if anyone can shed some light on my situation. My ultimate goal is to have a user select an item in a list box, have one column in the list box display in either a text box or preferrably a button based on what is selected. The form is being used currently as a rudimentary document retrieval system. The document that is saved on a shared drive is linked in a table by a hyperlink, each document is saved for a specific person. I have it set up now where the user types in the persons name in a combo box, when they tab out of the box 4 columns appear in the list box from a query based on the name in the cmbbox, the 5th column not showing in the listbox is the hyperlink. I would like it be where the user will click on the row of the document they'd like to open, and preferrably have the button take them to the document via a hyperlink once pressed. I'm not sure if this is possible through a button. Or, a text box would work fine. I have been able to get the text box to populate the hyperlink with afterupdate in the list box, but it doesn't display the Text link that is set up in the table, only the location. I am extremely new to Access, but do somewhat understand queries, relationships and some of the code. Any help would be EXTREMELY appreciated, so far it's been trial and error, and I've been racking my brain and google on this one. Below are the names of the objects being used in the form currently:
Combo box where persons name is entered: cmb_cmdoc
List box where info from query displays, column the hyperlink is in is (5): lstDoc
Button I'd like to open link based on item selected in listbox: btn_docsearch
Text box that now displays link, but not in link format: txtDoc
Thanks again!!
I've been working on this for a bit and wonder if anyone can shed some light on my situation. My ultimate goal is to have a user select an item in a list box, have one column in the list box display in either a text box or preferrably a button based on what is selected. The form is being used currently as a rudimentary document retrieval system. The document that is saved on a shared drive is linked in a table by a hyperlink, each document is saved for a specific person. I have it set up now where the user types in the persons name in a combo box, when they tab out of the box 4 columns appear in the list box from a query based on the name in the cmbbox, the 5th column not showing in the listbox is the hyperlink. I would like it be where the user will click on the row of the document they'd like to open, and preferrably have the button take them to the document via a hyperlink once pressed. I'm not sure if this is possible through a button. Or, a text box would work fine. I have been able to get the text box to populate the hyperlink with afterupdate in the list box, but it doesn't display the Text link that is set up in the table, only the location. I am extremely new to Access, but do somewhat understand queries, relationships and some of the code. Any help would be EXTREMELY appreciated, so far it's been trial and error, and I've been racking my brain and google on this one. Below are the names of the objects being used in the form currently:
Combo box where persons name is entered: cmb_cmdoc
List box where info from query displays, column the hyperlink is in is (5): lstDoc
Button I'd like to open link based on item selected in listbox: btn_docsearch
Text box that now displays link, but not in link format: txtDoc
Thanks again!!
Comment