ContributionsMost RecentMost LikesSolutionsRe: Want a link / button to download a file after creating log using API_AddRecordWorked perfectly - thank you very muchRe: Want a link / button to download a file after creating log using API_AddRecordThanks very much for this but I am still having problems Problem 1 When I put you code into the field I get a Formula syntax error The argument list of the functionrdrmust begin with a left parenthesis. var text URLONE = URLRoot() & "db/" & [_DBID_ACCESS_LOGS] & "?act=API_AddRecord" & "&_fid_6=" & ToText([Record ID#]); var text URLTWO = URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#]& "/e7/v0\"; $URLONE & "&rdr=" & URLEncode($URLTWO) Problem 2 When I deconstruct your code and put it into a URL I still get delivered the xml response and it does not go on to download the actual file. This is the key thing I am trying to achieve i.e. first create the log (which the first URL does successfully) and THEN download the file. Want a link / button to download a file after creating log using API_AddRecordI am struggling with the code to create a link that allows a user to download a file attachment, but at the same time creates a log to identify the user and the time of download. The code I have is below and it successfully creates the log record, but does not download the file. If ([Original File]>"", "<a href=\"" &URLRoot() & "db/" & [_DBID_ACCESS_LOGS] & "?act=API_AddRecord" & "&_fid_6=" & ToText([Record ID#]) & "&ticket=auth_ticket" & "apptoken=app_token" & "up/" & "db/" & Dbid() & "/a/r" & [Record ID#]& "/e7/v0\"target=_blank\">" & [Original File]& "</a>" ,"") Any help in identifying where I am going wrong would be appreciated.