Link to home
Start Free TrialLog in
Avatar of blueberry113
blueberry113

asked on

data import from excel to access

i want to make such interface that first choose the database whether MS Access or SQL Server where data hast to be imported from excel file.Then according to the database selected, choose access file or sql database.After that choose the table (assuming that the fields in the excel file and fields in access or sql server table are same)then choose the excel file from which data has to be imported to the access file or sql databse.

while importing data the care should be taken that if there are any changes in the existing records in excel those have to be updated in the access file or sql database.And the new records should be appended. while updating ask the user that "data already exists, do u want to overwrite or not" like yes, yes to all, no, no to all msgbox.

how can it be done using class because this has to be done in ASP again. In ASP we cannot get the message box and all so it would be great if you could send me codes for this problem.If possible could you please send me the ASP codes for the same.

i need to make it as component later.could you please tell me how can i make this a component.

hope to hear shortly

thanks!



Avatar of n_narayanan
n_narayanan
Flag of India image

ASKER CERTIFIED SOLUTION
Avatar of n_narayanan
n_narayanan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of blueberry113
blueberry113

ASKER

thanks a lot for your help.

actually i dont need to create any access file.
1.assume that there's already an excel file and access file with table(fields are similar to the excel).we have to use common dialog control to browse those files.

2.select an access file and table(displaying tables of corresponding access file), then select excel file from which data needs to be imported.

3.lets suppose at first we import data from excel to access. then if we append some data in excel those records have to be appended in the access file when we click on IMPORT button.But if there are any changes in the existing records as well as some new records in excel file  then the records should be updated as well as new records should be appended in access file.

4.we have to check thro ID only.If we find any changes in the existing records then we have to give message that this data exits, do u want to overwrite or not.we can give options like update, update all,cancel and cancel all.

5.i have almost done this but i need to make this using CLASS.

it would be appreciated a lot if you could send me the codes for the above using Class.

thanks!
Thanks blueberry

If your code is working, we can easy convert that into Class. Send me your code, I will try to convert it into class module.

n_narayanan@yahoo.com

Narayanan