Hello,
I'm trying to browse UPCHKD although after I hit the .fetch it just goes to the end with area. I can get the query to work in SQL.
What am I missing?
If at first you don't succeed, then sky diving wasn't meant for you!
I'm trying to browse UPCHKD although after I hit the .fetch it just goes to the end with area. I can get the query to work in SQL.
What am I missing?
Code:
Dim UPCHKD As AccpacCOMAPI.AccpacView
Dim UPCHKH As AccpacCOMAPI.AccpacView
cNIBDBLINK.OpenView "UP0048", UPCHKH
cNIBDBLINK.OpenView "UP0049", UPCHKD
UPCHKH.Compose Array(UPCHKD, Nothing, Nothing, Nothing, Nothing)
UPCHKD.Compose Array(UPCHKH, Nothing, Nothing)
With UPCHKD
.Browse "(PEREND >= '" & Format(pzeDate.Text, "yyyymmdd") & "') and (PEREND <= '" & Format(pzeEndDate.Text, "yyyymmdd") & "') and (EARNDED = 'NIB')", True
Do While .Fetch
If at first you don't succeed, then sky diving wasn't meant for you!