Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default insert or update

Hello,

i use an Access database for my Excel application i'm exporting some data
into it. I use ADO functions to insert or update data.
But i would like to know how to tell my function to insert if the primary
key doesn't exist and to update data if it exists.

Many thanks !
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default insert or update

hi,
trying to update and append and the same time is dangerous
and is not recommended. they should be run as seperate
operations.

-----Original Message-----
Hello,

i use an Access database for my Excel application i'm

exporting some data
into it. I use ADO functions to insert or update data.
But i would like to know how to tell my function to

insert if the primary
key doesn't exist and to update data if it exists.

Many thanks !
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert a row and not update existing formulas? Bobshaw Excel Discussion (Misc queries) 2 November 17th 08 09:36 AM
Update of cell values after insert row? dazman Excel Worksheet Functions 2 August 23rd 05 07:07 AM
insert into a cell the last update Ramiro Cubillan Excel Worksheet Functions 1 December 29th 04 08:45 PM
Cannot insert object when I update version DogMan Excel Programming 16 August 17th 04 07:01 AM
How to execute an SQL insert/update from Excel for Mac Laphan[_2_] Excel Programming 1 June 22nd 04 09:01 PM


All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"