473,425 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

Error 4104 multi-part identifier "dbo.carrier.cactive" could not be bound.

I am in the process of switching my back end of my database to an SQL Server. There are a few queries that are not working. I have narrowed it down to the LEFT JOIN statement, but I have no idea how to fix it. If I take out the LEFT JOIN, the query runs fine, but when I put it back, I get a bunch of the above errors.

Here is the SQL code:

Expand|Select|Wrap|Line Numbers
  1. SELECT Group.gBRET, 
  2. Group.gName, 
  3. Group.gID, 
  4. Assessment.aReqReceived, 
  5. Assessment.aPEO, 
  6. Assessment.aEffectiveDate, 
  7. Assessment.aBRETTier, 
  8. qCurrentPl.cpID, 
  9. qCurrentPl.cpName, 
  10. qCurrentPl.cpPharmacyTier, 
  11. qCurrentPl.cpHDHP, 
  12. qCurrentPl.cpOutOfNetwork, 
  13. qCurrentPl.cpGatekeeper, 
  14. qCurrentPl.cpInPatientCopay, 
  15. qCurrentPl.cpValueNetwork, 
  16. qCurrentPl.cpHMO, 
  17. qCurrentPl.cpValuePlan, 
  18. qCurrentPl.cpInPatientCopayAmt, 
  19. qCurrentPl.cpInPatientCopayOut, 
  20. qCurrentPl.cpIPCoPayLimits, 
  21. qCurrentPl.cpDedCoinsuranceRx, 
  22. qCurrentPl.cpSingleDedIn, 
  23. qCurrentPl.cpFamilyDedIn, 
  24. qCurrentPl.cpSingleDedOut, 
  25. qCurrentPl.cpFamilyDedOut, 
  26. qCurrentPl.cpCoinsuranceIn, 
  27. qCurrentPl.cpCoinsuranceOut, 
  28. qCurrentPl.cpSingleOOPMaxIn, 
  29. qCurrentPl.cpFamilyOOPMaxIn, 
  30. qCurrentPl.cpSingleOOPMaxOut, 
  31. qCurrentPl.cpFamilyOOPMaxOut, 
  32. qCurrentPl.cpPhysOfficeVisitIn, 
  33. qCurrentPl.cpSpecOfficeVisitIn, 
  34. qCurrentPl.cpPhysOfficeVisitOut, 
  35. qCurrentPl.cpInPatientHospIn, 
  36. qCurrentPl.cpInPatientInDetailed, 
  37. qCurrentPl.cpInPatientHospOut, 
  38. qCurrentPl.cpDiagnosticsIn, 
  39. qCurrentPl.cpDiagnosticsOut, 
  40. qCurrentPl.cpOutPatientFacIn, 
  41. qCurrentPl.cpOutPatientFacOut, 
  42. qCurrentPl.cpUrgentCare, 
  43. qCurrentPl.cpEmergencyRoom, 
  44. qCurrentPl.cpTier1Rx, 
  45. qCurrentPl.cpTier2Rx, 
  46. qCurrentPl.cpTier3Rx, 
  47. qCurrentPl.cpTier4Rx, 
  48. qCurrentPl.cpSubsEE, 
  49. qCurrentPl.cpSubsES, 
  50. qCurrentPl.cpSubsEC, 
  51. qCurrentPl.cpSubsEF, 
  52. qCurrentPl.cpSubsFC, 
  53. qCurrentPl.cptID, 
  54. qCurrentPl.cparID, 
  55. qCurrentPl.cpSingle, 
  56. qCurrentPl.cpDouble, 
  57. qCurrentPl.cpChildren, 
  58. qCurrentPl.cpFamily, 
  59. qCurrentPl.cpFamilyCont, 
  60. qCurrentPl.cpMonthlyTotal, 
  61. qCurrentPl.cpRenewalDate, 
  62. qCurrentPl.cpIncrease, 
  63. qCurrentPl.AuditTrail, 
  64. qCurrentPl.cpCarrierRenewal, 
  65. qCurrentPl.cpNotes, 
  66. qNewPl.*, 
  67. [cpsinglededin]-[psinglededin] AS SingleDedInC, 
  68. [cpphysofficevisitin]-[pphysofficevisitin] AS PCPCoPayC, 
  69. [cpspecofficevisitin]-[pspecofficevisitin] AS SpecCoPayC, 
  70. [pcoinsurancein]-[cpcoinsurancein] AS CoinsuranceC, 
  71. ([cpsingleoopinwoded]-[psingleoopinwoded]) AS OOPMaxC, 
  72. [cpInPatientcopayamt]-[pInPatientcopayamt] AS InPatientHospC, 
  73. [cpTier1Rx]-[pTier1Rx] AS Tier1RxC, 
  74. [cpTier2Rx]-[pTier2Rx] AS Tier2RxC, 
  75. [cpTier3Rx]-[pTier3Rx] AS Tier3RxC, 
  76. IIf([cpPharmacyTier]=[ppharmacyTier],"No","Yes") AS Tier4RxC, 
  77. IIf([cpHDHP]=[phdhp],"No","Yes") AS HDHPC, IIf([cpHMO]=[pHMO],"No","Yes") AS HMONetC, 
  78. IIf([cpOutOfNetwork]=[pOutOfNetwork],"No","Yes") AS OutOfNetC, 
  79. IIf([cpGatekeeper]=[pGatekeeper],"No","Yes") AS GatekeeperC, 
  80. IIf([cpDedCoinsuranceRx]=[pDedCoinsuranceRx],"No","Yes") AS DedCoinsRxC, 
  81. DateAdd("m",0,DateSerial(Year([aeffectivedate]),Month([aeffectivedate]),1))-1 AS ADPPerEndDate, 
  82. DateAdd("yyyy",+1,[adpperenddate]) AS CompEndDate, DateDiff("m",[aeffectivedate],[cPRenewalDate]) AS MosatCurr, 
  83. 12-[mosatcurr] AS MosAtRen, DateDiff("m",[aeffectivedate],[PRenewalDate]) AS ADPMosatCurr, 
  84. 12-[adpmosatcurr] AS ADPMosAtRen, 1+[cpincrease] AS CurCarIncr, 
  85. DateDiff("m",[aeffectivedate],[cpRenewalDAte]) AS MosatCurrBl, 
  86. 12-[Mosatcurrbl] AS MosAtRenBl, 
  87. [mosatcurrbl]+[mosatrenbl] AS TotalMos, 
  88. (([rsingle]*[npSubsEE])+([rdouble]*[npSubsES])+([rchildren]*[npSubsEC])+([rfamily]*[npSubsEF])+([rfamilycont]*[npSubsFC]))*12 AS ADPRates, 
  89. IIf([cpmonthlytotal]>0,[cpmonthlytotal]*12,(([cpsingle]*[cpSubsEE])+([cpdouble]*[cpSubsES])+([cpchildren]*[cpsubsEC])+([cpfamily]*[cpSubsEF])+([cpfamilycont]*[cpsubsFC]))*12) AS CurrentRates, 
  90. IIf([cpmonthlytotal]>0,[cpmonthlytotal]*12,(([cpsingle]*[npSubsEE])+([cpdouble]*[npSubsES])+([cpchildren]*[npsubsEC])+([cpfamily]*[npSubsEF])+([cpfamilycont]*[npsubsFC]))*12) AS CurrentRates1, 
  91. IIf([cpmonthlytotal]>0,[cpSubsEE]+[cpSubsES]+[cpSubsEC]+[cpSubsEF]+[cpSubsFC],0) AS CurSubsTot, 
  92. [cpsubsee]+[cpsubses]+[cpsubsec]+[cpsubsef]+[cpsubsfc] AS cSubsTotal, [npSubsEE]+[npSubsES]+[npSubsEC]+[npSubsEF]+[npSubsFC] AS npSubsTotal, 
  93. [cpMemEE]+[cpMemES]+[cpMemEC]+[cpMemEF] AS npMemTotal, 
  94. Assessment.aID, 1+[oAssumedRenewal] AS ADPRenewalRate, qCurrentPl.ccName, qCurrentPl.cpMemEE, qCurrentPl.cpMemES, 
  95. qCurrentPl.cpMemEC, 
  96. qCurrentPl.cpMemEF
  97. FROM [Group] INNER JOIN ((Assessment INNER JOIN qCurrentPl ON Assessment.aID = qCurrentPl.cpaID) 
  98.  
  99. LEFT JOIN qNewPl ON qCurrentPl.cpID = qNewPl.ocpID) ON (Group.gID = Assessment.gaID) AND (Group.gBRET = Assessment.agBRET);
  100.  
Can someone please tell me what I am missing here? Thank you so much for your help.

Kelly
Mar 30 '10 #1
3 3858
ck9663
2,878 Expert 2GB
You don't have an alias called "carrier"

Happy Coding!!!

~~ CK
Mar 31 '10 #2
I'm sorry...I have no idea what that means!

Kelly
Mar 31 '10 #3
ck9663
2,878 Expert 2GB
Do you have a table called Carrier anywhere on your TSQL?

Good Luck!!!

~~ CK
Mar 31 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: CSDunn | last post by:
Hello, I have a combo box (Combo7) that needs to call a function during the After Update event of the combo box. The function resides in an Access 2000 ADP Module called MMAnswerData_code. The...
8
by: CSDunn | last post by:
Hello, I have a situation in which I need to address three SQL Server 2000 Stored Procedure parameters in the OnClick event of an Option Group. The Option Group lives on an Access 2000 ADP form. ...
2
by: CSDunn | last post by:
Hello, I have an MS Access 2003 Project form in which I need to set the value of a textbox named 'TestGrade' to the value present after the update of a combo box currently named 'Combo6'. The data...
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
1
by: jeguillo | last post by:
I am trying to retrieve the text within each cell in a datagrid in order to change the color of each cell, depending on the value within that cell. This works fine on the cells that are bound...
7
by: Dabbler | last post by:
I'm using an ObjectDataSource with a stored procedure and am getting the following error when trying to update (ExecuteNonQuery): System.Data.SqlClient.SqlException: Procedure or Function...
4
by: oshiko | last post by:
Hi All, Below is my SQL Statement, Select Text, Value, Status from Tables I want to mark as a checked when the Status is true, how do I achieve this during databinding? Thank you very...
2
by: shumaker | last post by:
I have a combobox that is very much like the one found in the RSS project here: http://msdn.microsoft.com/vstudio/express/visualCSharp/learning/ My projectNameComboBox basically is filled with a...
0
by: Peter Newman | last post by:
vb.net 2003 Sql 2005 Ive been banging my head against a brick wall for the last day trying to figure out what im doing wrong I have a Dataset and a Form with text boxes that are bound to the...
24
by: Kavya | last post by:
int main (){ int a={{1,2,3},{4,5,6}}; int (*ptr)=a; /* This should be fine and give 3 as output*/ printf("%d\n",(*ptr)); ++ptr;
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.