Using ADO connection,below error occurs and
The same commands works fine when executed from Access using
the query mode not ADO.
Question is it that total no of fields in the table of
select statement and total no of fields in insert
table be the same and also the fields name too.
if not what is the reason for error
ERROR MESSAGE
Number of query values and destination fields are not the same
The ADO Command is
cn.Execute ("insert into dchallan SELECT challan.challan_no, challan.challan_date, challan.party_id, challan.site, challan.truck_no, challan.material, challan.measurement, challan.driver , challan.entered_by , challan.time , challan.purch_ord_no , challan.Billed From challan, Sites WHERE (((challan.site)=[sites].[sid]) AND ((challan.Billed)='F') AND ((sites.Category)='A'))"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
The same commands works fine when executed from Access using
the query mode not ADO.
Question is it that total no of fields in the table of
select statement and total no of fields in insert
table be the same and also the fields name too.
if not what is the reason for error
ERROR MESSAGE
Number of query values and destination fields are not the same
The ADO Command is
cn.Execute ("insert into dchallan SELECT challan.challan_no, challan.challan_date, challan.party_id, challan.site, challan.truck_no, challan.material, challan.measurement, challan.driver , challan.entered_by , challan.time , challan.purch_ord_no , challan.Billed From challan, Sites WHERE (((challan.site)=[sites].[sid]) AND ((challan.Billed)='F') AND ((sites.Category)='A'))"