If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > How to update data from Excel into Access database?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-04, 06:19
emeryt emeryt is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
How to update data from Excel into Access database?

Hi

I have developed an Excel Application using mdb file as database.
The problem is, if there is any possibility to update data in database by update statement eg. Update Tabela Set sth=5 where id=5; ?

Because now I have sth like this:

Set baza = OpenDatabase(c:\database.mdb)
Set tabela = baza.OpenRecordset("Tabela", dbOpenDynaset)

Do
With tabela
.MoveFirst
If !ID = 5 Then
.Delete
.AddNew
!ID = 5
!sth = 5
.Update
Exit Do
Else
.MoveNext
End If
End With
Loop

and it take to much time to update all data.
I'm new in database issues in Excel, so I really apreciate any help.

Thanks in advance,

Łukasz Żebrowski
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On