I have the following error when i execute an sql insert statement. Kindly help me know what caused the error and how can i rectify.
[h=3]No value given for one or more required parameters[/h]The code with the sql statement is
sqlText = "INSERT INTO " & strDBTable & "(" _
& "LZ, HHNO, QNO, [DATE], TEAM, CLUSTER, " _
& "CLUSNAME, District, HHSIZETODAY, HHSIZELAST30, U5s, HHHSEX, CGMSTAT, CGLEDUC, " _
& "RESIDE, IDP6MTHS, IDPsHOSTED, HHNETS, NETSOURCE, " _
& "CFDFREQ, FREQMILK, " _
& "VITA, MEASVAC, POLIOVAC, IMMCARD, AGE, " _
& "SEX, OEDEMA, HEIGHT, WEIGHT, MUAC, " _
& "DIAR, PNEUMONIA, FEVER, MEASLES, SLEPTNET, " _
& "HFAC, SFP, ADULTAGE, TETVAC, ADULTMUAC, " _
& "PHYSIO, MOTMQNET, PROGMOTH, ADULTILL, ILLM_OTH, HFAC_MOT, " _
& "YNOHFAC_M, NOAS_OTH, ADULTAGE1, TETVAC1, ADULTMUAC1, " _
& "PHYSIO1, MOTMQNET1, PROGMOTH1, ADULTILL1, ILLM_OTH1, HFAC_MOT1, YNOHFAC_M1, NOAS_OTH1, ADULTAGE2, " _
& "TETVAC2, ADULTMUAC_2, PHYSIO2, MOTMQNET2, PROGMOTH2, " _
& "ADULTILL2, ILLM_OTH2, HFAC_MOT2, YNOHFAC_M2, NOAS_OTH2, BFAST, SNACK1, LUNCH, SNACK2, " _
& "DINNER, SNACK3, CEREAL_CH, MILK_CH, " _
& "MEATS_CH, EGGS_CH, LEGUMES_CH, " _
& "VitAFVs_CH, OtherFVs_CH, FGPS_CH, BFAST4, " _
& "SNACK1_4, LUNCH4, SNACK2_4, " _
& "DINNER4, SNACK3_4, CEREALS, LEGUMES, MILK, VIT_A_VEG, VEGES, OTHERVEG, FRUITS, OTHERFRT, " _
& "ORGANMEAT, MEAT, EGGS, FISH, OIL, ROOTS, SWEETS, COFFEE, FOODGRPS, EATOUT, MAINFDSO, " _
& "FOODAIDFREQ, WATERSO, WATERSO_Other, YNOSAFEWAT, " _
& "YNOWAT_Other, DAYSNOWAT, RESNOWAT, TIMETKEN, JERCAN20, " _
& "JERICAN5, DRUM, HAAN, OTHCONTAINER, OTHCONTAINER_S, TOTALLTS, " _
& "WATTREAT, BOILING, CHLORINE, FILTER, DECANT, " _
& "SUN, WATTREAT_Other, WATERBUY, TOILTYPE, YNOLAT, " _
& "SHARING, WASHAGNT, NO_Info, MASSMED, PRINTMED, " _
& "PSNLCOMM, GRPMEET, RECTIME" _
& DB_TYPE_FIELDS _
& ") VALUES(" _
& "@LZ, @HHNO, @QNO, @DATE, @TEAM, @CLUSTER, " _
& "@CLUSNAME, @District, @HHSIZETODAY, @HHSIZELAST30, @U5s, @HHHSEX, @CGMSTAT, @CGLEDUC, " _
& "@RESIDE, @IDP6MTHS, @IDPsHOSTED, @HHNETS, @NETSOURCE, " _
& "@CFDFREQ, @FREQMILK, " _
& "@VITA, @MEASVAC, @POLIOVAC, @IMMCARD, @AGE, " _
& "@SEX, @OEDEMA, @HEIGHT, @WEIGHT, @MUAC, " _
& "@DIAR, @PNEUMONIA, @FEVER, @MEASLES, @SLEPTNET, " _
& "@HFAC, @SFP, @ADULTAGE, @TETVAC, @ADULTMUAC, " _
& "@PHYSIO, @MOTMQNET, @PROGMOTH, @ADULTILL, @ILLM_OTH, @HFAC_MOT, " _
& "@YNOHFAC_M, @NOAS_OTH, @ADULTAGE1, @TETVAC1, @ADULTMUAC1, " _
& "@PHYSIO1, @MOTMQNET1, @PROGMOTH1, @ADULTILL1, @ILLM_OTH1, @HFAC_MOT1, @YNOHFAC_M1, @NOAS_OTH1, @ADULTAGE2, " _
& "@TETVAC2, @ADULTMUAC_2, @PHYSIO2, @MOTMQNET2, @PROGMOTH2, " _
& "@ADULTILL2, @ILLM_OTH2, @HFAC_MOT2, @YNOHFAC_M2, @NOAS_OTH2, @BFAST, @SNACK1, @LUNCH, @SNACK2, " _
& "@DINNER, @SNACK3, @CEREAL_CH, @MILK_CH, " _
& "@MEATS_CH, @EGGS_CH, @LEGUMES_CH, " _
& "@VitAFVs_CH, @OtherFVs_CH, @FGPS_CH, @BFAST4, " _
& "@SNACK1_4, @LUNCH4, @SNACK2_4, " _
& "@DINNER4, @SNACK3_4, @CEREALS, @LEGUMES, @MILK, @VIT_A_VEG, @VEGES, @OTHERVEG, @FRUITS, @OTHERFRT, " _
& "@ORGANMEAT, @MEAT, @EGGS, @FISH, @OIL, @ROOTS, @SWEETS, @COFFEE, @FOODGRPS, @EATOUT, @MAINFDSO, " _
& "@FOODAIDFREQ, @WATERSO, @WATERSO_Other, @YNOSAFEWAT, " _
& "@YNOWAT_Other, @DAYSNOWAT, @RESNOWAT, @TIMETKEN, @JERCAN20, " _
& "@JERICAN5, @DRUM, @HAAN, @OTHCONTAINER, @OTHCONTAINER_S, @TOTALLTS, " _
& "@WATTREAT, @BOILING, @CHLORINE, @FILTER, @DECANT, " _
& "@SUN, @WATTREAT_Other, @WATERBUY, @TOILTYPE, @YNOLAT, " _
& "@SHARING, @WASHAGNT, @NO_Info, @MASSMED, @PRINTMED, " _
& "@PSNLCOMM, @GRPMEET, @RECTIME" _
& DB_TYPE_VALUES _
& ")
[h=3]No value given for one or more required parameters[/h]The code with the sql statement is
sqlText = "INSERT INTO " & strDBTable & "(" _
& "LZ, HHNO, QNO, [DATE], TEAM, CLUSTER, " _
& "CLUSNAME, District, HHSIZETODAY, HHSIZELAST30, U5s, HHHSEX, CGMSTAT, CGLEDUC, " _
& "RESIDE, IDP6MTHS, IDPsHOSTED, HHNETS, NETSOURCE, " _
& "CFDFREQ, FREQMILK, " _
& "VITA, MEASVAC, POLIOVAC, IMMCARD, AGE, " _
& "SEX, OEDEMA, HEIGHT, WEIGHT, MUAC, " _
& "DIAR, PNEUMONIA, FEVER, MEASLES, SLEPTNET, " _
& "HFAC, SFP, ADULTAGE, TETVAC, ADULTMUAC, " _
& "PHYSIO, MOTMQNET, PROGMOTH, ADULTILL, ILLM_OTH, HFAC_MOT, " _
& "YNOHFAC_M, NOAS_OTH, ADULTAGE1, TETVAC1, ADULTMUAC1, " _
& "PHYSIO1, MOTMQNET1, PROGMOTH1, ADULTILL1, ILLM_OTH1, HFAC_MOT1, YNOHFAC_M1, NOAS_OTH1, ADULTAGE2, " _
& "TETVAC2, ADULTMUAC_2, PHYSIO2, MOTMQNET2, PROGMOTH2, " _
& "ADULTILL2, ILLM_OTH2, HFAC_MOT2, YNOHFAC_M2, NOAS_OTH2, BFAST, SNACK1, LUNCH, SNACK2, " _
& "DINNER, SNACK3, CEREAL_CH, MILK_CH, " _
& "MEATS_CH, EGGS_CH, LEGUMES_CH, " _
& "VitAFVs_CH, OtherFVs_CH, FGPS_CH, BFAST4, " _
& "SNACK1_4, LUNCH4, SNACK2_4, " _
& "DINNER4, SNACK3_4, CEREALS, LEGUMES, MILK, VIT_A_VEG, VEGES, OTHERVEG, FRUITS, OTHERFRT, " _
& "ORGANMEAT, MEAT, EGGS, FISH, OIL, ROOTS, SWEETS, COFFEE, FOODGRPS, EATOUT, MAINFDSO, " _
& "FOODAIDFREQ, WATERSO, WATERSO_Other, YNOSAFEWAT, " _
& "YNOWAT_Other, DAYSNOWAT, RESNOWAT, TIMETKEN, JERCAN20, " _
& "JERICAN5, DRUM, HAAN, OTHCONTAINER, OTHCONTAINER_S, TOTALLTS, " _
& "WATTREAT, BOILING, CHLORINE, FILTER, DECANT, " _
& "SUN, WATTREAT_Other, WATERBUY, TOILTYPE, YNOLAT, " _
& "SHARING, WASHAGNT, NO_Info, MASSMED, PRINTMED, " _
& "PSNLCOMM, GRPMEET, RECTIME" _
& DB_TYPE_FIELDS _
& ") VALUES(" _
& "@LZ, @HHNO, @QNO, @DATE, @TEAM, @CLUSTER, " _
& "@CLUSNAME, @District, @HHSIZETODAY, @HHSIZELAST30, @U5s, @HHHSEX, @CGMSTAT, @CGLEDUC, " _
& "@RESIDE, @IDP6MTHS, @IDPsHOSTED, @HHNETS, @NETSOURCE, " _
& "@CFDFREQ, @FREQMILK, " _
& "@VITA, @MEASVAC, @POLIOVAC, @IMMCARD, @AGE, " _
& "@SEX, @OEDEMA, @HEIGHT, @WEIGHT, @MUAC, " _
& "@DIAR, @PNEUMONIA, @FEVER, @MEASLES, @SLEPTNET, " _
& "@HFAC, @SFP, @ADULTAGE, @TETVAC, @ADULTMUAC, " _
& "@PHYSIO, @MOTMQNET, @PROGMOTH, @ADULTILL, @ILLM_OTH, @HFAC_MOT, " _
& "@YNOHFAC_M, @NOAS_OTH, @ADULTAGE1, @TETVAC1, @ADULTMUAC1, " _
& "@PHYSIO1, @MOTMQNET1, @PROGMOTH1, @ADULTILL1, @ILLM_OTH1, @HFAC_MOT1, @YNOHFAC_M1, @NOAS_OTH1, @ADULTAGE2, " _
& "@TETVAC2, @ADULTMUAC_2, @PHYSIO2, @MOTMQNET2, @PROGMOTH2, " _
& "@ADULTILL2, @ILLM_OTH2, @HFAC_MOT2, @YNOHFAC_M2, @NOAS_OTH2, @BFAST, @SNACK1, @LUNCH, @SNACK2, " _
& "@DINNER, @SNACK3, @CEREAL_CH, @MILK_CH, " _
& "@MEATS_CH, @EGGS_CH, @LEGUMES_CH, " _
& "@VitAFVs_CH, @OtherFVs_CH, @FGPS_CH, @BFAST4, " _
& "@SNACK1_4, @LUNCH4, @SNACK2_4, " _
& "@DINNER4, @SNACK3_4, @CEREALS, @LEGUMES, @MILK, @VIT_A_VEG, @VEGES, @OTHERVEG, @FRUITS, @OTHERFRT, " _
& "@ORGANMEAT, @MEAT, @EGGS, @FISH, @OIL, @ROOTS, @SWEETS, @COFFEE, @FOODGRPS, @EATOUT, @MAINFDSO, " _
& "@FOODAIDFREQ, @WATERSO, @WATERSO_Other, @YNOSAFEWAT, " _
& "@YNOWAT_Other, @DAYSNOWAT, @RESNOWAT, @TIMETKEN, @JERCAN20, " _
& "@JERICAN5, @DRUM, @HAAN, @OTHCONTAINER, @OTHCONTAINER_S, @TOTALLTS, " _
& "@WATTREAT, @BOILING, @CHLORINE, @FILTER, @DECANT, " _
& "@SUN, @WATTREAT_Other, @WATERBUY, @TOILTYPE, @YNOLAT, " _
& "@SHARING, @WASHAGNT, @NO_Info, @MASSMED, @PRINTMED, " _
& "@PSNLCOMM, @GRPMEET, @RECTIME" _
& DB_TYPE_VALUES _
& ")