Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2008

Tip: Looking for answers? Try searching our database.

how do I combine Select and Update queries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Powell - 17 Apr 2008 20:54 GMT
Hello.  I am trying to combine a Select and Update Query.  Essentially what I
am trying to do is Select Records by a Yes flag, have a statement added to a
subform to say leaflet sent together with the date, the yes flag will then be
updated to No.  I have forgotten most of what I did know about access.  I
have attempted to merge two SQL query with no success as below.

SELECT [sols somerset  wilts (3)].[Mailing?]
FROM [sols somerset  wilts (3)]
WHERE ((([sols somerset  wilts (3)].[Mailing?])=Yes))
UPDATE [sols somerset  wilts (3)], Updates SET [sols somerset  wilts
(3)].[Mailing?] = No, Updates.Notes = "Details Sent", Updates.[Update Date] =
Date();

My language skills are nil so any  help would be gratefully received.

Regards, David
Klatuu - 17 Apr 2008 21:35 GMT
You are going to have to provide more detail.  The SQL you are trying to use
will not work at all.  It also looks like you are trying to update two
different tables.

If you can describe in great detail what you want it to do, I can show you
how to do it.
Signature

Dave Hargis, Microsoft Access MVP

> Hello.  I am trying to combine a Select and Update Query.  Essentially what I
> am trying to do is Select Records by a Yes flag, have a statement added to a
[quoted text clipped - 12 lines]
>
> Regards, David
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.