jsandoval
Active member
I am trying to perform a data adapter fill and get this message. The record in the data source exists and it is a unique keyed record so I can't find the issue with the application.
Any help would be appreciated.
'---------------------------------------------------------------------------
SelComm = "SELECT ICRKAA, ICRLAA, ICZRNU, ICZSNU, ICGZCD, ICB1CD, ICCJNB, ICCINB, " & _
"ICCHNB, ICRBAA, ICUXSU, ICA1NB, ICE1TX, ICE2TX, ICCYNB, ICKPNB, ICLHNB, " & _
"ICAXCD, ICKQNB, ICE9TX, ICBZCD, ICDBST, ICCXNB, ICNONB, ICKGNB, ICACPR, " & _
"ICADPR, ICAEPR, ICD3NB, ICD2NB, ICCJVN, ICLPNB, ICE8TX, ICE7TX, ICPPSU, " & _
"ICPQSU, ICPRSU, ICADPR " & _
"From " & Current.Application("DBLibDTA") & ".SCICWU " & _
"Where ICRKAA = 'I' and ICRLAA = 'ZZZZZ' and ICZRNU = 99999999 " & _
"and ICZSNU = 999 and ICGZCD = '" & strServiceGroup & "' " & _
"and ICB1CD = '" & strPrefix & "' and ICCJNB = " & intContractNbr & " " & _
"and ICCINB = 1 and ICCHNB = 1 and ICRBAA = '" & strTranType & "'"
OdbcDataAdapter1.SelectCommand.CommandText = SelComm
dSet.Clear()
'Try
intICWRecCnt = OdbcDataAdapter1.Fill(dSet)
Any help would be appreciated.
'---------------------------------------------------------------------------
SelComm = "SELECT ICRKAA, ICRLAA, ICZRNU, ICZSNU, ICGZCD, ICB1CD, ICCJNB, ICCINB, " & _
"ICCHNB, ICRBAA, ICUXSU, ICA1NB, ICE1TX, ICE2TX, ICCYNB, ICKPNB, ICLHNB, " & _
"ICAXCD, ICKQNB, ICE9TX, ICBZCD, ICDBST, ICCXNB, ICNONB, ICKGNB, ICACPR, " & _
"ICADPR, ICAEPR, ICD3NB, ICD2NB, ICCJVN, ICLPNB, ICE8TX, ICE7TX, ICPPSU, " & _
"ICPQSU, ICPRSU, ICADPR " & _
"From " & Current.Application("DBLibDTA") & ".SCICWU " & _
"Where ICRKAA = 'I' and ICRLAA = 'ZZZZZ' and ICZRNU = 99999999 " & _
"and ICZSNU = 999 and ICGZCD = '" & strServiceGroup & "' " & _
"and ICB1CD = '" & strPrefix & "' and ICCJNB = " & intContractNbr & " " & _
"and ICCINB = 1 and ICCHNB = 1 and ICRBAA = '" & strTranType & "'"
OdbcDataAdapter1.SelectCommand.CommandText = SelComm
dSet.Clear()
'Try
intICWRecCnt = OdbcDataAdapter1.Fill(dSet)