hi And1,
And1 wrote:
[Quoted Text] > Hi, > I am novice and I have problem. I need import some data with Excel file > to Access. > Problem introduces as follows: > In Excel(first sheet) i have data: > "TYTUL" - column "A" > "NAZWISKO" - column "B" > "IMIE" - column "C" > "PRZEDMIOT" - column "D". > Excel file name is AND.xls > > In Access i have table - AS_PRZEDMIOT. > I need import data from Excel (PRZEDMIOTY - column "D") to Access (field > P_NAZWA). Additionally to every record in field P_AKTYWNY insert number > "1".
You can use
INSERT INTO [AS_PRZEDMIOT] ([P_NAZWA]) SELECT [PRZEDMIOTY] FROM [Excel 8.0;Database=YourExcel;Hdr=Yes].[NameOfSheet$]
as SQL statement in an ordenary query.
mfG --> stefan <--
|