Hi everyone,
I'm having the hardest time with an issue that you would think to be easy to do! But, being an access noob, I can't seem to get it to work. Access 2000.
What I have is a tab within a form used to basically input records into a table. It's set up now with one text box where the user will enter the clients name (txt_client), a field for the clients TIN (txt_TIN), a combox with the document type (cmb_type). I have a button linked to a module that brings up an explorer window for the user to select the file they saved, then when selected the path displays in a hidden text box (txt_loc). I'd like to input all of the information the user enters into the corresponding table (tbl_doc).
I'd also like to format the text box displaying the path with a format. What I mean is when the path is displayed in txt_loc, it shows C:\path\path\do cument.pdf for example, the drive the documents are on is a shared drive on a server. So I'd like to replace C:\ with the actual drive name on the server, for example replace C:\ with \\mappeddrive\n ame\path\docume nt.pdf. The column that corresponds with the txt_loc is the primary key in the table if that makes a difference.
I've tried creating a recordet, using a connection and tried with just a update sql statement in the event procedure of the button. I can not get the thing to work for the life of me. Any help would be GREATLY appreciated!!
I'm having the hardest time with an issue that you would think to be easy to do! But, being an access noob, I can't seem to get it to work. Access 2000.
What I have is a tab within a form used to basically input records into a table. It's set up now with one text box where the user will enter the clients name (txt_client), a field for the clients TIN (txt_TIN), a combox with the document type (cmb_type). I have a button linked to a module that brings up an explorer window for the user to select the file they saved, then when selected the path displays in a hidden text box (txt_loc). I'd like to input all of the information the user enters into the corresponding table (tbl_doc).
I'd also like to format the text box displaying the path with a format. What I mean is when the path is displayed in txt_loc, it shows C:\path\path\do cument.pdf for example, the drive the documents are on is a shared drive on a server. So I'd like to replace C:\ with the actual drive name on the server, for example replace C:\ with \\mappeddrive\n ame\path\docume nt.pdf. The column that corresponds with the txt_loc is the primary key in the table if that makes a difference.
I've tried creating a recordet, using a connection and tried with just a update sql statement in the event procedure of the button. I can not get the thing to work for the life of me. Any help would be GREATLY appreciated!!
Comment