Hi Mark,
I'm trying this code in my own instance here, but I'm struggling to get the query correct. Not sure what the syntax error is.
My Formula Query is:
var text QUERY = "{7.OAF.'" & [Month] & "'} AND {7.OBF.'" & LastDayOfMonth([Month]) & "'}";
GetFieldValues(GetRecords($QUERY,"bru6bq226") & ("14.EX." & [What community do you live in?] & "),12) &
ToNumber(Trim(Left([Record IDs for this NPI],";"))) = [Record ID#]
But, the field value [What community do you live in?] is generating a syntax error.
Oddly, it goes away when I have a repeat line below like this:
var text QUERY = "{7.OAF.'" & [Month] & "'} AND {7.OBF.'" & LastDayOfMonth([Month]) & "'}";
GetFieldValues(GetRecords($QUERY,"bru6bq226") & ("14.EX." & [What community do you live in?] & "),12) &
ToNumber(Trim(Left([Record IDs for this NPI],";"))) = [Record ID#]
GetRecords("{14.EX." & [What community do you live in?] & "}"),12)
But then the syntax error moves to the '.' following EX.
I think I just have it mixed up where I'm putting in the "'s ...but not quite sure.
Can you offer any guidance how to get that to pull the information from the outside table?
Thank you in advance for your help and time!
Jen
------------------------------
Jennifer Juhasz
------------------------------