Inserting Hyperlink from Form to Table Access VBA SQL -


I entered on a form that I want to take the hyperlink (as hyperlink), which it Need to know, I am using Access 2010 through VBA. This gives me a SQL statement error. I know that it is to do with hyperlink # signals, I do not understand how hyperlinks are handled. I've read a lot of forum posts, but they are all different (different years), and I do not like to hack their lessons to meet their needs I Will anyone please tell me what it is that I Am doing wrong Thank you

  private sub SaveReq_Click () 'saves the current entry to the database table is' open 'pr_req_table' '' with regard to the database data_base database set data_base = dim (CurrentProject as OpenDatabase. Path & amp; "\ test_database.accdb") Grab add the information in the information 'data_base.Execute pr_req_table putting "pr_req_table" _ & amp; "(Pr_no, pr_date, pr_owner, pr_link, pr_signed)" _ & amp; "Values ​​(" & amp; pr_num.Value & amp; ", #" & amp; format (pr_date.Value, "dd / mm / yyyy") & amp; "#," _ & amp; List22.Value & amp ; "" & amp; "Excel copy #" and a copy went to Elkacopikvalu and "," and "sign #" & amp; Sainkapi. value & amp; ";);" Thanks in advance for any help!  

After the Nathan

"itemprop =" text ">

I have a parameter query type Use this in:

  Sub InsertRecord () Due to data_base = OpenDatabase (CurrentProject.Path & "\ test_database.accdb") as a data_base database set 'Take all forms from Add information 'information to QuadDef set as QD pr_req_table QD = data_base.CreateQueryDef ("") qd.sql = "pr_req_table insert (pr_no, pr_date, pr_owner, pr_link, Pr_signed)" & amp; _ "Value ([p1], [p2], [p3], [p4], [p5])". Qd.Parameters ("p1") value = pr_num.value qd.Parameters ("p2"). Value = format (PRDAT.value, "MM / DD / YYYY") qd.Parameters ("p3"). Value = list 22.Value qd.Parameters ("p4"). Value = "Excel Copy #" & amp; Elec_copy.Value qd.Parameters ("p5"). Value = "signed copied #" & amp; Sign_copy.Value qd.Execute End sub    

Comments