D
don
I have written a program to hold a sales contact db. It is written in c#
express.
an update is sent from head office in xl format, i need to import only the
new rows to an access database.
I have gotten this far:
a separate OleDbconnection to each source, which reads the entire data
source (select *) into the same dataset, but different tables.
from here i want to be able to pull the new rows from the xl table and
append it to the access table.
When I try to create a relation between the two table it says "This
constraint cannot be enabled as not all values have corresponding parent
values."
*******************************************************************************************************************
DataColumn parentColumn =
accessdata.Tables["gnwestcustomers"].Columns["Customer Number"];
DataColumn childColumn = accessdata.Tables["Table"].Columns["Customer
Number"];
DataRelation relExcel;
relExcel = new DataRelation("RelateExcel", parentColumn, childColumn);
accessdata.Relations.Add(relExcel);
***************************************************************************************************************************************
I can do this all in MSAccess easily, but the user needs to be able to do it
in the field....come on people sales person here.......not technically
enabled in the computer department if you know what i mean...
any help appreciated.
Thanks in advance.
express.
an update is sent from head office in xl format, i need to import only the
new rows to an access database.
I have gotten this far:
a separate OleDbconnection to each source, which reads the entire data
source (select *) into the same dataset, but different tables.
from here i want to be able to pull the new rows from the xl table and
append it to the access table.
When I try to create a relation between the two table it says "This
constraint cannot be enabled as not all values have corresponding parent
values."
*******************************************************************************************************************
DataColumn parentColumn =
accessdata.Tables["gnwestcustomers"].Columns["Customer Number"];
DataColumn childColumn = accessdata.Tables["Table"].Columns["Customer
Number"];
DataRelation relExcel;
relExcel = new DataRelation("RelateExcel", parentColumn, childColumn);
accessdata.Relations.Add(relExcel);
***************************************************************************************************************************************
I can do this all in MSAccess easily, but the user needs to be able to do it
in the field....come on people sales person here.......not technically
enabled in the computer department if you know what i mean...
any help appreciated.
Thanks in advance.