473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Filling every record in a table with the same data.

I currently have a table and one of my columns is Feature 1. I have
over 4000 records and I want to have this column to all have SD in the
field. Is their a way to auto populate all this data? With out having
to enter it into all 4000 records?

May 24 '06 #1
7 1425
UPDATE YourTable SET YourTable.[Feature 1] = "SD";

<da***********@mail.va.gov> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
I currently have a table and one of my columns is Feature 1. I have
over 4000 records and I want to have this column to all have SD in the
field. Is their a way to auto populate all this data? With out having
to enter it into all 4000 records?
May 24 '06 #2
Run an update query to change the field to SD

May 24 '06 #3
Thank you, I tried the update query once, but it did not work. I just
try ited again and it worked.

David

May 24 '06 #4
You probably found this out but SD is a string and consequently where your
update query said Update To, you need to put the string in quotes:
"SD"
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1175 users have come to me from the newsgroups requesting help
re******@pcdatasheet.com
<da***********@mail.va.gov> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...
Thank you, I tried the update query once, but it did not work. I just
try ited again and it worked.

David

May 25 '06 #5
"PC Datasheet" <No****@Spam.Com> wrote in message
news:cH****************@newsread2.news.pas.earthli nk.net...

To Steve:
No-one wants your advertising/job hunting here!
Over 875 !! users from the newsgroups have visited the website to read what
kind of a 'resource' you are... (rapidly increasing..)

To the original poster:
Most people here have a common belief that the newsgroups are for *free
exchange of information*.
But Steve is a notorious job hunter in these groups, always trying to sell
his services.
And he is known here as a shameless liar with no ethics at all.

Before you intend to do business with him look at:
http://home.tiscali.nl/arracom/whoissteve.html
May 25 '06 #6
This is a pointless post, Mark Reed already showed how to do it with quotes.
Did you not read that the OP got it to work?

John... Visio MVP

"PC Datasheet" <No****@Spam.Com> wrote in message
news:cH****************@newsread2.news.pas.earthli nk.net...
You probably found this out but SD is a string and consequently where your
update query said Update To, you need to put the string in quotes:
"SD" <da***********@mail.va.gov> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...
Thank you, I tried the update query once, but it did not work. I just
try ited again and it worked.

David

May 25 '06 #7
* John Marshall, MVP:
This is a pointless post, Mark Reed already showed how to do it with quotes.
Did you not read that the OP got it to work?


The post wasn't pointless. The point was not, however, to help the OP.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
May 25 '06 #8

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

Similar topics

3
by: ironcito | last post by:
Hello all, I'm not an Access expert, so I'll try to explain the problem the best I can, and please try to answer so that a layman can understand it =) I have a database with several tables,...
5
by: msprygada | last post by:
I am having a problem with getting a recordset to fill with data in an Access Data Project from a SQL Server database. Here is the code example that is in the Access help files that I can get to...
3
by: Russ | last post by:
I have a drop down list on a web page that I pre-fill onload from a SQL table using a SqlDataReader. The line of code that fills the drop down looks like this while(myReader.Read()) {...
3
by: crjunk | last post by:
I have a 3 table in my DataSet that I'm filling with data. After I've filled these 3 tables, I'm then trying to run a query that will fill a 4th table in the DataSet with data from the three...
0
by: Derek Vincent | last post by:
Why am I having problems filling my dataset when I select fields of type varchar(350) from interbase? I can fill the dataset when I select every other field in the table but I receive and error...
6
by: fstenoughsnoopy | last post by:
I have a customer order database and I need to pull a customers information, ie first name, last name, address, city, state, zip, phone, etc, into the oder table. i don't know how to go about...
6
by: Bill | last post by:
Hi All, New to the whole .Net and C# thing but trying. In classic asp this was simple to fill a table with dynamic content and hyperlinks. Here is an example of what I am trying to do in classic...
3
by: nico3334 | last post by:
I'm filling in a Report with SQL data using VB code. I'm using LOOP and MoveNext. Before using MoveNext, I would like to be able to check whether the new data is equal to the previous data that was...
2
by: Mel | last post by:
Can anyone assist me in how I would structure this code to update every record in a table? I need to loop through each record and increase the cost field by a certain percentage. How do I loop...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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 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.