473,804 Members | 3,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Seeking SQL to update tblCustomers.Ca lled to True

MLH
An attached table named tblCustomers (but without the capital C)
is attached to my Access database. The table is a remote MySQL
table. I can read it and even make some changes to its data
manually in table view.

I would like an example PassThrough query's SQL to show how
to update [tblcustomers].[Called] to True. Thanks.
Nov 13 '05 #1
2 1626
Simply build a query in the query builder. Make it a pass-through query.

update tblCustomers set Called = True

In fact, for the above query, since it is so simple, you don't even have to
make it pass-through.

Save the query, lets call it qrySetTrue

Now, in code to run the above, just use.

docmd.RunSql "qrySetTrue "
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
http://www.attcanada.net/~kallal.msn
Nov 13 '05 #2
"Albert D. Kallal" <Pl************ *******@msn.com > wrote in
news:2IG2d.4544 36$gE.279517@pd 7tw3no:
Simply build a query in the query builder. Make it a
pass-through query.

update tblCustomers set Called = True

In fact, for the above query, since it is so simple, you don't
even have to make it pass-through.

Save the query, lets call it qrySetTrue

Now, in code to run the above, just use.

docmd.RunSql "qrySetTrue "


Excactly what the Original Poster (OP) asked. but in the interest
of anybody searching through the archives, we should explain that
this will set the called field true for every record in the
tblCustomers. A more suitable query would include a WHERE clause
that takes the primary key of the OP's current record and limit
the change to that one.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3265
by: Nicolae Fieraru | last post by:
Hi All, I was trying to update a field in a table, based on the results from a query. The table to be updated is tblCustomers and the query is qrySelect. This query has two parameters, provided by a form. I created an update query called qryUpdate, which has both tblCustomers and qrySelect (linked by CustomerID). And I try to update one of the fields in tblCustomers. If I open the form, and I click on a button, I can open qrySelect and...
3
1477
by: DK | last post by:
Please can somebody help me ? I have forms named Form 1, Form 2 etc. having fields CustomerName,CustomerAddress,..... Id like to have button on each form ,which will open another form named "CustomerAdd" with list of all customers in tblCustomers. After I pick one of the customers from the list, actual form should be closed and details of customer shall be send to fields in Form 1 or Form2 or...
1
1757
by: Chris Austin | last post by:
A co-worker asked me today what would happen if Session.Add() method was called multiple times with the same key. My first thought was that it would throw some sort of duplicate key exception. Thinking about it some more, the only thing it really does is implement ICollection and possibly IDictionary so the implementation could be anything so I looked into a bit further. Documentation didn't say anything about the Add() methods besides...
1
1011
by: GG | last post by:
I have a very simple form that I am using to take in the information and save it to the MS Access Database using dataset. My DataAdapter is called dadConstituent and dataset is called dstConstituent I am getting a "Record Not Added - 0 - Microsoft Jet Database Engine - Syntax Error in INSERT INTO statement -- 0".. Please look at the Msgbox to see the format of the error that I am
1
2025
by: mursyidatun ismail | last post by:
Dear all, database use: Ms Access. platform: .Net i'm trying to update a record/records in a table called t_doctors by clicking da edit link provided in the database. when i ran through da browsers and click update it gave me this error: Specified argument was out of the range of valid values. Parameter name:
0
1759
by: Erik | last post by:
Why isn't my update method getting called? Pasted below is an aspx from a 1.1 application I'm working on. It has two textboxes and a button for inserting data into the database, and a datagrid for editing and deleting data. When a user clicks on the "Edit" button in the datagrid, Edit() method is called and the appropriate row is changed into textboxes. And if user clicks on the "Update" button, the Update() method is fired. But if...
2
3116
by: Miro | last post by:
I will ask the question first then fumble thru trying to explain myself so i dont waste too much of your time. Question / Statement - Every mdb table needs a PrimaryKey ( or maybe an index - i havnt tested the index yet ) so you can use an .UPDATE( dataTable ) on the data adapter. Otherwise you will get an exception error. Is this statement true? ---- Now me fumbling thru
3
1433
by: Kevin Walzer | last post by:
Hello, I am seeking to update this wiki page, which lists Mac OS X applications using Python in a significant way: http://wiki.python.org/moin/MacPython/MacSoftwareUsingPython This query is directed at developers of cross-platform Python applications who provide full support for the Mac. By "full support," I mean that you have Mac-specific builds of your application, deployed in
1
1868
by: ProcessMgr | last post by:
I have an Access2003 database that we are converting the backend tables to SQL Server Express. Since this is one of my first times dealing with SQL Server Express, I am having a few issues with one of the programs. Basically it takes a temporary file created in the Access database and it needs to update two tables in the SQL database. I have part of the code below - the temporary file is tblRegister. If there is another way I need to do it,...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10320
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.