Hello,
I am encountering an issue while programming a simple query. The odd part is that this query is based off of previous queries in the same project. For some reason, the query doesn't process correctly.
I have tried various methods of .read and .browse/fetch from simple to complex compositions. As soon as the .read or .fetch is reached, it reacts as though there is no information that matches. Here is some code examples:
What am I missing? Any assistance would be greatly appreciated. In addition, please do not suggest using COMAPI as that is not an option for this program.
Thank you.
If at first you don't succeed, then sky diving wasn't meant for you!
I am encountering an issue while programming a simple query. The odd part is that this query is based off of previous queries in the same project. For some reason, the query doesn't process correctly.
I have tried various methods of .read and .browse/fetch from simple to complex compositions. As soon as the .read or .fetch is reached, it reacts as though there is no information that matches. Here is some code examples:
Code:
Set OEORDH = cfgSESS.OpenView("OE0520", "OE")
With OEORDH
.Fields("ORDNUMBER").Value = Trim$(l_strQuoteNum)
If .Read Then
l_strOrdUniq = Trim$(OEORDH.Fields("ORDUNIQ").Value)
End If
End With
Code:
'// Set the views.
Set OEORDH = cfgSESS.OpenView("OE0520", "OE")
Set OEORDD = cfgSESS.OpenView("OE0500", "OE")
Set OETERMO = cfgSESS.OpenView("OE0740", "OE")
Set OECOINO = cfgSESS.OpenView("OE0180", "OE")
Set OESELO = cfgSESS.OpenView("OE0680", "OE")
Set OEORDQ = cfgSESS.OpenView("OE0526", "OE")
Set OEORDHO = cfgSESS.OpenView("OE0522", "OE")
Set OEORDDO = cfgSESS.OpenView("OE0501", "OE")
Set OEORDDD = cfgSESS.OpenView("OE0502", "OE")
Set OEORDDDS = cfgSESS.OpenView("OE0504", "OE")
Set OEORDD0 = cfgSESS.OpenView("OE0503", "OE")
OEORDH.Compose Array(OEORDD, OESELO, OECOINO, OETERMO, OEORDQ, OEORDHO)
OEORDD.Compose Array(OEORDH, OEORDDO, OEORDD0, OEORDDD)
OETERMO.Compose Array(OEORDH)
OECOINO.Compose Array(OEORDH, OEORDD)
OESELO.Compose Array(OEORDH, OEORDD)
OEORDQ.Compose Array(OEORDH)
OEORDHO.Compose Array(OEORDH)
OEORDDO.Compose Array(OEORDD)
OEORDDD.Compose Array(OEORDD, OEORDDDS)
OEORDDDS.Compose Array(OEORDDD)
OEORDD0.Compose Array(OEORDD)
With OEORDH
.Fields("ORDNUMBER").Value = Trim$(l_strQuoteNum)
If .Read Then
l_strOrdUniq = Trim$(OEORDH.Fields("ORDUNIQ").Value)
End If
End With
What am I missing? Any assistance would be greatly appreciated. In addition, please do not suggest using COMAPI as that is not an option for this program.
Thank you.
If at first you don't succeed, then sky diving wasn't meant for you!