Select Case Statement with Stacked Cases not working

here it is:
                    Select Case ColHeaderName
                        Case "VIN", "StockNum", "Make", "Model", "ModelCode", "Memo", "Body", "Color", "Engine", "AdjustedCost", "MilesIn", "ExistingPlate", "DeliveryDate" & _
                             "AdjustedMsrp", "Adv", "AppendTimeStamp", "BookValue", "BrokerAmount", "BrokerID", "Buyer", "ColorCode", "Cost" & _
                            "DMVType", "EquipmentOptions", "Freight", "HoldBack", "Ignition", "IgnitionLocation", "InvoiceDate", "InvoiceNumber", "Location", "MileageType" & _
                            "MilesOut", "MSRP", "NewVehicle", "Pack", "PictureFilename", "PurchasedFrom", "SellingPrice", "SoldToBrokerAmount", "SoldToBrokerID", "StockDate" & _
                            "TitleNumber", "TitleType", "TradeACV", "TradeAddToStock", "TradeAllowance", "TradeBookValue", "TradeLien", "Transmission", "Trunk", "TrunkLocation" & _
                            "WebPrice", "Weight", "Year", "VehicleStatus", "IsOnFloorPlan", "WasDemo", "ExistingPlateExpires", "FloorPlanCompanyOID", "FloorPlanCompanyName" & _
                            "FloorPlanRate", "FloorPlanGrace", "FlooredAmount", "IncludeFloorPlanInAdjCost", "FloorPlanEndDate", "FloorPlanAccum", "InspectionStationNumber" & _
                            "WebDescription1", "WebDescription2", "WebDescription3", "WebDescription4", "WebDescription5", "WebDescription6", "WasWholesale" & _
                            "FormattedStockNum", "IsRepo", "NumCylinders", "NumDoors", "FuelType", "InteriorColor", "InteriorType", "IsCertified", "AutoRevoEquipment" & _
                            "AutoTraderEquipment", "IsSpecial", "SpecialExpires", "SpecialPrice", "SeatingCapacity", "LastWriteCount", "VehicleNotes", "DataFeeds_DoNotSend" & _
                            "VideoURL", "SegmentationCode", "QRCode", "TitleOrigin"

                            StockDR(ColHeaderName) = changes.Rows(i).Item(ColHeaderName)

                        Case Else
                            'Stop Here
                    End Select

Open in new window


Something is wrong with the way I have these lines broken up in the case statements
it will read "VIN" but not  "AdjustedMsrp" Could anyone help?
MBHEY131Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

Maybe add a comma before all of the  & _

Regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MBHEY131Author Commented:
yeah you were correct - you just need a comma and none of the other junk " & _"
here's the correct syntax:

                    Select Case ColHeaderName
                        Case "VIN", "StockNum", "Make", "Model", "ModelCode", "Memo", "Body", "Color", "Engine", "AdjustedCost", "MilesIn", "ExistingPlate", "DeliveryDate",
                            "InventoryID", "AdjustedMsrp", "Adv", "AppendTimeStamp", "BookValue", "BrokerAmount", "BrokerID", "Buyer", "ColorCode", "Cost",
                            "DMVType", "EquipmentOptions", "Freight", "HoldBack", "Ignition", "IgnitionLocation", "InvoiceDate", "InvoiceNumber", "Location", "MileageType",
                            "MilesOut", "MSRP", "NewVehicle", "Pack", "PictureFilename", "PurchasedFrom", "SellingPrice", "SoldToBrokerAmount", "SoldToBrokerID", "StockDate",
                            "TitleNumber", "TitleType", "TradeACV", "TradeAddToStock", "TradeAllowance", "TradeBookValue", "TradeLien", "Transmission", "Trunk", "TrunkLocation",
                            "WebPrice", "Weight", "Year", "VehicleStatus", "IsOnFloorPlan", "WasDemo", "ExistingPlateExpires", "FloorPlanCompanyOID", "FloorPlanCompanyName",
                            "FloorPlanRate", "FloorPlanGrace", "FlooredAmount", "IncludeFloorPlanInAdjCost", "FloorPlanEndDate", "FloorPlanAccum", "InspectionStationNumber",
                            "WebDescription1", "WebDescription2", "WebDescription3", "WebDescription4", "WebDescription5", "WebDescription6", "WasWholesale",
                            "FormattedStockNum", "IsRepo", "NumCylinders", "NumDoors", "FuelType", "InteriorColor", "InteriorType", "IsCertified", "AutoRevoEquipment",
                            "AutoTraderEquipment", "IsSpecial", "SpecialExpires", "SpecialPrice", "SeatingCapacity", "LastWriteCount", "VehicleNotes", "DataFeeds_DoNotSend",
                            "VideoURL", "SegmentationCode", "QRCode", "TitleOrigin"

                            StockDR(ColHeaderName) = changes.Rows(i).Item(ColHeaderName)

                        Case Else
                            'Stop Here
                    End Select

thanx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.