I am using the following to do an INSERT if a record does not exist:
SaveMyData = "INSERT INTO clients (FirstName, LastName, Email, SSN) IN '\\
server\contacts.mdb' SELECT [Forms![client printout]![FirstName], Forms!
[client printout]![LastName], Forms![client printout]![email], Forms![client
printout]![SSN]"
I am trying to write an UPDATE to update all info if the record does exist
but I can not figure out how to do an update for a network database. Can
someone give me the syntax?
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/200706/1 2 2514
On Jun 4, 11:17 am, "jbiggs via AccessMonster.com" <u33089@uwewrote:
I am using the following to do an INSERT if a record does not exist:
SaveMyData = "INSERT INTO clients (FirstName, LastName, Email, SSN) IN '\\
server\contacts.mdb' SELECT [Forms![client printout]![FirstName], Forms!
[client printout]![LastName], Forms![client printout]![email], Forms![client
printout]![SSN]"
I am trying to write an UPDATE to update all info if the record does exist
but I can not figure out how to do an update for a network database. Can
someone give me the syntax?
--
Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/2007...
UPDATE works on linked tables so a network database should be no
problem if a link to the table you want to perform the update on is
properly linked.
create the UPDATE syntax by creating a new update query in the
database window.
after you have set all the parameters, change to SQL view and copy the
sql statement to your code with DoCmd RunSQL "......"
On Mon, 04 Jun 2007 15:17:35 GMT, "jbiggs via AccessMonster.com"
<u33089@uwewrote:
You got the path wrong. It should be \\server\share\contacts.mdb.
Personally I never use this syntax, but rather use attached tables.
-Tom.
>I am using the following to do an INSERT if a record does not exist:
SaveMyData = "INSERT INTO clients (FirstName, LastName, Email, SSN) IN '\\ server\contacts.mdb' SELECT [Forms![client printout]![FirstName], Forms! [client printout]![LastName], Forms![client printout]![email], Forms![client printout]![SSN]"
I am trying to write an UPDATE to update all info if the record does exist but I can not figure out how to do an update for a network database. Can someone give me the syntax?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Gent |
last post by:
am using FOR UPDATE triggers to audit a table that has 67 fields. My
problem is that this slows down the system significantly. I have
narrowed down the problem to the size (Lines of code) that need...
|
by: takilroy |
last post by:
Hi,
Does anyone know of a simple way to do this? I want to create an
insert trigger for a table and if the record already exists based on
some criteria, I want to update the table with the...
|
by: Derek Erb |
last post by:
SQL Server 2000 : I have a series of tables which all have the same
structure. When any of these tables are modified I need to syncrhonise
all of those modifications with one other table wich is a...
|
by: serge |
last post by:
/*
This is a long post. You can paste the whole message
in the SQL Query Analyzer.
I have a scenario where there are records
with values pointing to wrong records and I need to fix them
using an...
|
by: Philip Boonzaaier |
last post by:
I want to be able to generate SQL statements that will go through a list of
data, effectively row by row, enquire on the database if this exists in the
selected table- If it exists, then the colums...
|
by: Neo Geshel |
last post by:
This works:
<form>
<asp:TextBox id="name" />
<%= name.ClientID %>
</form>
But this DOES NOT work:
<form>
|
by: Bruce Momjian |
last post by:
I have events in the next few weeks in New York City, Copenhagen, Paris,
and Atlanta. Check the News section on the web site for more
information. I will also be in Amsterdam February 2-3, though...
|
by: Robert Fitzpatrick |
last post by:
On 7.4.2 I have a trigger that I want to update any existing boolean
values to false if a new one in that group is declare true by inserting
a new record or updating an existing record:
ohc=#...
|
by: Mark Harrison |
last post by:
So I have some data that I want to put into a table. If the
row already exists (as defined by the primary key), I would
like to update the row. Otherwise, I would like to insert
the row.
I've...
|
by: V T |
last post by:
Hello all,
SQL Server 2000 documentation
http://www.microsoft.com/technet/prodtechnol/sql/2000/reskit/part10/c3761.mspx
states that if view is using "NOT NULL" columns of a base table, then...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |