473,569 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change fields automatically?

All,
In excel, when you find a field within a spreadsheet is wrong, and
every row needs to be changed, you simply change one cell, copy that
cell, and select all the rest of the cell, and paste it. In word, you
can just replace... in Access, how do we change fields in a table?
especially if it is a check box. Say, I want all the [MeetCriteria?]
field to be yes for a selected (or even all) records. How to
accomplish this easier than export all these to excel and bring it
back? Thanks.

Perry

Jun 12 '07 #1
3 4331
Hi Perry,

you can use an Update query to update the desired records. Go to the
Query tab and click on New/Design. In the design window select your
desired table. In the Menu bar at the top of the Query Design Window
(the first Menu Bar that contains File, Edit, View,...) , go to the
Query menu and select "Update Query". Now go back to your table in the
Query Design view, scroll to your field that you want to update and
double click that field. This will place the field name in the "Field"
cell in the grid below. This is the field you want to update. In the
"Update To" cell enter the value you want to update the field to. For
Yes/No fields just enter True for yes and False for No. Then, in the
"Criteria:" cell below that you need to enter the criteria for the query
to use so that you update only the desired rows. If you want to update
all the rows to the same value, just leave Criteria blank. But if you
want to update only specific rows, then enter something like
yourTableName.S omeField = 'something"

Criteria: ExcelTable.Firs tName = 'Joe'

This tells the query to only update your Yes/No field to True for rows
where the FirstName = 'Joe'. Note that I delimit the text 'Joe' with
single quotes. You have to delimit Text with single quotes. Numeric
values do not require delimiting. Date values in Access are delimited
by the # Pound symbol.

HTH

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jun 12 '07 #2
On Jun 12, 10:49 am, perry...@yahoo. com wrote:
All,
In excel, when you find a field within a spreadsheet is wrong, and
every row needs to be changed, you simply change one cell, copy that
cell, and select all the rest of the cell, and paste it. In word, you
can just replace... in Access, how do we change fields in a table?
especially if it is a check box. Say, I want all the [MeetCriteria?]
field to be yes for a selected (or even all) records. How to
accomplish this easier than export all these to excel and bring it
back? Thanks.

Perry
Go into query builder and basically do the same thing as you do in
Excel. Grab the table in question. Make this an update query. Drag
the field(s) you want to change and (if they are different) the fields
you want to use as the criteria for applying the changes into the
grid. Filter on the change criteria and add in the new value. Then
run the query.

Jun 12 '07 #3
Rich & Dave,
Thank you folks. I've never used this function before. Ok, it
is that easy... silly me. Thanks again.

Perry

Jun 12 '07 #4

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

Similar topics

1
2029
by: Jason | last post by:
I have a form that is used for entering and editing site address information. The data in the form is from one table, named Total_Site_Address. There are fields in this table (and controls on the form) for entering in a new site address or choosing an existing site address. There are two fields that address the existing site addresses, one...
7
7685
by: Vlad | last post by:
I have a problem of different date formats in an international study, where the data entry module and error checking module are delivered to the data collecting centres. Error checking module displays queries for edit specifications, many of them with dates. For exmple in Sweden, date format is YYYY-MM-DD, this are how dates are displayed;...
0
1586
by: socasteel21 via AccessMonster.com | last post by:
I have a database for filing warranty claims. It includes a subform where part numbers can be entered and the prices automatically update based on the part number and quantity entered. However, I am using this database for 2 factories, one of which I have access to the parts database and can automatically populate price fields,...
18
3775
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having trouble. I have tried keeping some of the fields bound and when I use the save button it has been saving as 2 different records. This is unacceptable. ...
13
4947
by: sonald | last post by:
Hi, Can anybody tell me how to change the text delimiter in FastCSV Parser ? By default the text delimiter is double quotes(") I want to change it to anything else... say a pipe (|).. can anyone please tell me how do i go about it?
1
3036
by: Shizbart | last post by:
MS Access 97 Beginner/Moderate Level User I am trying to create a Database to track Workouts in MS Access 97. I have one Table named Workouts that contains the following Fields: Workout Code (e.g: U100), WorkoutActivity (e.g.: Bench Press: Flat Bench Straightbar) (note: this is the Primary Key of this Table), and Target Area ...
5
1343
by: max | last post by:
There is probably an easy answer to this but I can't figure it out. I have a table with fields of numbers that are 5 or more decimals long. i.e. 47.19568 I want to round these numbers to 1 decimal. i.e. 47.2 I have tried to create a query and set that field to 1 decimal and when I look at it in datasheet view, it displays the number I want. ...
8
3259
by: mlwerth | last post by:
Dear Access Group: This is the most basic and most embarrassing of questions, but I cannot find where to change the data type of a text field that I have in Access 2003 to a number field. I've searched high and low through help databases and on the internet. The directions say to : Open the table in Design view Click the Data Type...
0
2194
by: morathm | last post by:
I have a windows client database management application written in C# that connects to remote web services to do all the heavy work. The thin-client app uses strong typed datasets, all maintained at the web service, with a web reference to those datasets via exposed s on the web service. The client app has a series of windows forms designed to...
0
7703
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...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7678
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...
0
7982
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...
1
5514
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...
0
5222
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...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
944
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...

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.