Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Access import data from excel but no update

0 views
Skip to first unread message

MiRoT

unread,
Jul 17, 2009, 8:22:01 PM7/17/09
to
Hello.
I Have this Table (named pelates) in Access
kwdikos_pelath --- number(primary key)
onomatepwnymo
thlefwno
hmeromhnia --- date
poso

And i create also this Excel file (named work pelates)
A1 - kwdikos_pelath
B1 - onomatepwnymo
C1 - thlefwno
D1 - hmeromhnia
E1 - poso
and i add some values.

Then i try to Access, file -> import data and i recieved all datas from Excel.
When i make some changes to Excel (add new values, delete old values and
rewrite data on the old kwdikos_pelath(primary key), i got an error like
can't write second datas (cause of primary key).
Is there a way to copy new datas and also update old datas with new values?
(I have no knowlege on Visual Basic)
Thanks.


AFSSkier

unread,
Sep 21, 2009, 8:39:01 PM9/21/09
to
Have you tried Linking to the Excel file, rather than Import?

When you Link, the Excel file can be updated as needed. And the file can be
used as a table in Access.

--
Kevin

Douglas J. Steele

unread,
Sep 22, 2009, 5:09:25 PM9/22/09
to
Actually, because of losing a lawsuit a few years ago, Microsoft was forced
to remove the ability to update linked Excel files.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"AFSSkier" <AFSS...@discussions.microsoft.com> wrote in message
news:534AC489-E5AC-4115...@microsoft.com...

JORGE

unread,
Sep 29, 2009, 5:30:08 AM9/29/09
to

"MiRoT" <Mi...@discussions.microsoft.com> wrote in message
news:1D28B2A8-78C8-4B4E...@microsoft.com...

Laoshu

unread,
Oct 20, 2009, 7:26:04 AM10/20/09
to

"AFSSkier" <AFSS...@discussions.microsoft.com> 写入消息
news:534AC489-E5AC-4115...@microsoft.com...

b-fleig

unread,
Nov 25, 2009, 5:37:47 AM11/25/09
to

"AFSSkier" <AFSS...@discussions.microsoft.com> schrieb im Newsbeitrag
news:534AC489-E5AC-4115...@microsoft.com...
0 new messages