markSaunders
Programmer
Hi, I have a spreadsheet containing data in the format described below...
I have used a TransferSpreadsheet macro but it refuses to import the subtopic level (x.x.x of data).
I have two text fields in the import table (as in the spreadsheet) named ClassID and ClassDesc.
If I set the primary key as ClassID then I recieve an error on import to the effect that there was a primary key violation or referential integrity problem.
If I set the table to contain no primary key then all the data is imported with the exception of the ClassID (x.x.x) for the subtopic level - i.e. the ClassDesc is still imported but with no value for the ClassID for subtopics.
There is no problem if I manually copy the contents of the spreadsheet to the clipboard and paste directly into the table.
This is the first process for uploading the data to SQL2000 (as I find it much easier to write these macros than try and do the same thing in SQL [for now...])
Any help would be greatfully appreciated.
Regards
Mark Mark Saunders![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Code:
x category 1
x.x topic x.1
x.x topic x.2
x.x.x subtopic x.x1
x.x.x subtopic x.x.2
x category 2
..etc..
I have used a TransferSpreadsheet macro but it refuses to import the subtopic level (x.x.x of data).
I have two text fields in the import table (as in the spreadsheet) named ClassID and ClassDesc.
If I set the primary key as ClassID then I recieve an error on import to the effect that there was a primary key violation or referential integrity problem.
If I set the table to contain no primary key then all the data is imported with the exception of the ClassID (x.x.x) for the subtopic level - i.e. the ClassDesc is still imported but with no value for the ClassID for subtopics.
There is no problem if I manually copy the contents of the spreadsheet to the clipboard and paste directly into the table.
This is the first process for uploading the data to SQL2000 (as I find it much easier to write these macros than try and do the same thing in SQL [for now...])
Any help would be greatfully appreciated.
Regards
Mark Mark Saunders