afternoon all,
receiving the following:
runtime error '-2147217900 (80040e14)'
ambiguous name in query expression
'yearcalc([tblshiptmephdr]![confirmed-date-time])'.
the query is in a module that has worked for years and none of the syntax or tables / fields have changed.
i could see there being an issue with confirmed-date-time being used twice if the tables were not explicitly defined - but they are.
any ideas on how to fix or what may have happend? only thing new that i can think of were patches that ms sent down on 06/22.
thanks.
regards,
longhair
receiving the following:
runtime error '-2147217900 (80040e14)'
ambiguous name in query expression
'yearcalc([tblshiptmephdr]![confirmed-date-time])'.
the query is in a module that has worked for years and none of the syntax or tables / fields have changed.
Code:
cmd.CommandText = "INSERT INTO tblSHIPTempShippingData ( AvesSKU, [FC$], PCS, [Year], CustCode, [TTLShippingK$], ConfirmedDate, [pick-ticket-num] ) SELECT UCase([product-code]) AS Expr3, tblSHIPTempPicTrl.[sales-cost], tblSHIPTempPicTrl.[SumOfpicked-qty], YearCalc([tblSHIPTemphdr]![confirmed-date-time]) AS Expr1, tblSHIPTempOEtrl.[cust-code], ([tblSHIPTempOEtrl]![extended-price]/[tblSHIPTempOEtrl]![qty-ordered])*[tblSHIPTempPicTrl]![SumOfpicked-qty] AS Expr2, tblSHIPTemphdr.[confirmed-date-time], tblSHIPTemphdr.[pick-ticket-num] FROM (tblSHIPTempOEtrl INNER JOIN tblSHIPTemphdr ON tblSHIPTempOEtrl.[order-num] = tblSHIPTemphdr.[order-num]) INNER JOIN tblSHIPTempPicTrl ON (tblSHIPTempOEtrl.[line-num] = tblSHIPTempPicTrl.[order-line-num]) AND (tblSHIPTemphdr.[pick-ticket-num] = tblSHIPTempPicTrl.[pick-ticket-num]) WHERE (((tblSHIPTemphdr.[shipment-num])<>''));"
cmd.Execute
any ideas on how to fix or what may have happend? only thing new that i can think of were patches that ms sent down on 06/22.
thanks.
regards,
longhair