streborr
IS-IT--Management
- Jan 16, 2002
- 98
I keep getting this error message:
Microsoft JET Database Engine error '80040e14'
Number of query values and destination fields are not the same.
/choice.asp, line 276
Heres the INSERT statement:
insSTRING = "INSERT INTO Draft (draft_id, draft_sales_rep, draft_date, "
insSTRING = insSTRING & "draft_dist_name, draft_dist_city, draft_dist_state, draft_dist_contact, "
insSTRING = insSTRING & "draft_oem_cus_name, draft_oem_cus_city, draft_oem_cus_state, draft_oem_cus_contact, "
insSTRING = insSTRING & "draft_end_cus_name, draft_end_cus_city, draft_end_cus_state, draft_end_cus_contact)"
insSTRING = insSTRING & " VALUES ('" & strID & "','" & strSalesRepName & "' & '" & strdate & "', "
insSTRING = insSTRING & "'" & strDistName & "','" & strDistCity & "','" & strDistState & "','" & strDistContact & "', "
insSTRING = insSTRING & "'" & strOEMName & "','" & strOEMCity & "','" & strOEMState & "','" & strOEMContact & "', "
insSTRING = insSTRING & "'" & strEndName & "','" & strEndCity & "','" & strEndState & "','" & strEndContact & "')"
rsADO.Execute insSTRING <!--this is line 276 -->
The numbers look like they match up to me!
Am I looking in the wrong place for the problem?
Thanks for any help!
Rick
Microsoft JET Database Engine error '80040e14'
Number of query values and destination fields are not the same.
/choice.asp, line 276
Heres the INSERT statement:
insSTRING = "INSERT INTO Draft (draft_id, draft_sales_rep, draft_date, "
insSTRING = insSTRING & "draft_dist_name, draft_dist_city, draft_dist_state, draft_dist_contact, "
insSTRING = insSTRING & "draft_oem_cus_name, draft_oem_cus_city, draft_oem_cus_state, draft_oem_cus_contact, "
insSTRING = insSTRING & "draft_end_cus_name, draft_end_cus_city, draft_end_cus_state, draft_end_cus_contact)"
insSTRING = insSTRING & " VALUES ('" & strID & "','" & strSalesRepName & "' & '" & strdate & "', "
insSTRING = insSTRING & "'" & strDistName & "','" & strDistCity & "','" & strDistState & "','" & strDistContact & "', "
insSTRING = insSTRING & "'" & strOEMName & "','" & strOEMCity & "','" & strOEMState & "','" & strOEMContact & "', "
insSTRING = insSTRING & "'" & strEndName & "','" & strEndCity & "','" & strEndState & "','" & strEndContact & "')"
rsADO.Execute insSTRING <!--this is line 276 -->
The numbers look like they match up to me!
Am I looking in the wrong place for the problem?
Thanks for any help!
Rick