Additional thoughts on breaking up the query as mentioned already by
Nic: your GL likely has numeric logic to it like 1 series are assets, 2
series accounts are liabilities, and so on. After your existing
r3table.AddCriteria statement on line 26 you ...
Try this:Dim strUD1Member As String = "14123"Dim strUD4DefaultMember As
String = "189"'Get the UD1 Member InfoDim UD1Member As Member =
BRApi.Finance.Members.GetMember(si, dimtypeId.UD1, strUD1Member)Dim
UD1MemberInfo As MemberInfo = BRApi.Finance.Me...