jrossausiscom
5 years agoQrew Assistant Captain
URL Button, Create one record in 3 tables
Is it possible to add records to more than one table with a URL button? Below is a generic example of what I was trying to do:
------------------------------
John Ross
------------------------------
//Create a record in Device Config Records, then load in the data. PRIMARY
(URLRoot() & "db/" & [_DBID_CONFIG] & "?a=API_AddRecord&_fid_6=" & URLEncode ([Staging ID])
//Create a record in Financial Records, then load in the data
(URLRoot() & "db/" & [_DBID_FINANCIAL] & "?a=API_AddRecord&_fid_6=" & URLEncode ([Staging ID])
//Return to Staging Request
& "&rdr=" & Dbid() & URLEncode("?a=er&rid=") & URLEncode ([Staging ID])
The error I receive says "there are extra characters beyond the end of your formula". I presume I am using the wrong syntax?
------------------------------
John Ross
------------------------------