Dharmesh Patel
New Member
- Joined
- May 12, 2009
- Messages
- 25
I have created excel file susing macro in access and updated an Access table with the location of the files. The table column data type is hyperlink. How can I set the address of teh hyperlink at the sametime as I update the table.
e.g the location column in the table "Created files" is a hyperlink data type, once a file is created the location column gets updated with "C:\DHARMESH\PRODUCT\AMERICAS.XLS". How can I set the address of the hyperlink at the same time as updateing the column.
I use the DOCmd.run sql to update the table.
dpSQL = "INSERT INTO TPGCreated(File,Centre,Date_Completed,Pivotal_Reference,TourName,TourDate,TourTime,ASDASM,SaleEmail,Location,TourCentre) VALUES (""" & FileName.Value & """,""" & CentreNumber.Value & """,""" & Now() & """, """ & PivRef.Value & """, """ & TourName.Value & """, """ & Tour_Date.Value & """, """ & Tour_Time.Value & """, """ & ASDASM.Value & """, """ & SaleEmail.Value & """, """ & xlSaveFile & """, """ & TourCentre.Value & """)"
DoCmd.RunSQL dpSQL
e.g the location column in the table "Created files" is a hyperlink data type, once a file is created the location column gets updated with "C:\DHARMESH\PRODUCT\AMERICAS.XLS". How can I set the address of the hyperlink at the same time as updateing the column.
I use the DOCmd.run sql to update the table.
dpSQL = "INSERT INTO TPGCreated(File,Centre,Date_Completed,Pivotal_Reference,TourName,TourDate,TourTime,ASDASM,SaleEmail,Location,TourCentre) VALUES (""" & FileName.Value & """,""" & CentreNumber.Value & """,""" & Now() & """, """ & PivRef.Value & """, """ & TourName.Value & """, """ & Tour_Date.Value & """, """ & Tour_Time.Value & """, """ & ASDASM.Value & """, """ & SaleEmail.Value & """, """ & xlSaveFile & """, """ & TourCentre.Value & """)"
DoCmd.RunSQL dpSQL