The following query works fine. Now I am trying to clean up the formatting because its difficult to read or find anything. This is far better than what I had. But I know there is more.
Code:
stSQL = "INSERT INTO dbo_Property" & _
"( County, kPIN, TownshipNO, TownshipNM, CycleID, CycleName, CountyClass, PropertyDesc, LevelofAssess, Type, OpenFile, KattyAssigned, Paddress1, Paddress2, Pcity, PState, Pzip5, TaxCode)" _
& "VALUES ('" & stCnty & "','" _
& stKPIN & "','" _
& stTwnNo & "','" _
& stSelTwn & "','" _
& stCycleID & "','" _
& stCycleNM & "','" _
& stSelClas & "','" _
& stDesc & "','" _
& stLoa & "','" _
& stTypeNM & "','" _
& stOpenFile & "','" _
& stKattAs & "','" _
& stPaddress1 & "','" _
& stPaddress2 & "','" _
& stPCity & "','" _
& stPState & "','" _
& PZip5 & "','" _
& stTaxCode & "');"
Somewhere I saw an example where you were able to place the "Field" and then the "Value" (Variable) on one line. So each line contained the field name and then the corresponding variable and it was so easy to read.
Field "County" Value "stCounty"
I cant remember where to find it. I have several queries like this. Can anyone help. Readability is the goal. If there are other suggestions on making it readable I would be interested in hearing them. But my main goal now is to get each field and variable on one line.
Thanks
Phred