473,378 Members | 1,104 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,378 software developers and data experts.

how to "fill data series" in Access?

emandel
65
In excel, I am able to select a whole bunch of cells in one column and copy the data from one cell to the lot of them. Is it possible to do this in access? Is it possible to enter the same date to many fields at once?
May 29 '11 #1
7 9009
Stewart Ross
2,545 Expert Mod 2GB
Relational databases such as Access work in entirely different ways to Excel. There is no 'fill-down' (or fill-right for that matter) feature which can replicate what can be done in Excel, nor is there any reason why there would be.

If you could explain what it is you are trying to achieve we may be able to assist (for example by the use of an SQL INSERT or UPDATE statement, or by recordset processing), but without clarification of what you are trying to do we'd just be guessing.


-Stewart
May 29 '11 #2
Brian Connelly
103 100+
Agreeing with Stewart, more clarification is needed on what you are trying to accomplish. Excel and Access are completely different programs of the Microsoft suite and have different purposes and are intended to be used different things.
May 30 '11 #3
emandel
65
OK fair enough.

so lets say I have a list of people and I selected all of the people whose name begins with the letter R and I used that list for something, lets say I printed a letter to them. I now want to flag all of them, so I created a new yes/no field and I want to "check" off all 150 of the records that are applicable. Is there any way for me to do that without going to each record and selecting them individually?
Hope that makes sense.
May 30 '11 #4
Mariostg
332 100+
I am not sure I decipher completely what you want to accomplish, but maybe this will inspire you:
Expand|Select|Wrap|Line Numbers
  1. UPDATE MyTable
  2. SET MyFieldtoMark = "Printed"
  3. WHERE left(MyFieldLastName,1)="R"
  4.  
May 30 '11 #5
Stewart Ross
2,545 Expert Mod 2GB
Multi-record updates such as the one you mention can be done with an update query, but you would have to be precise about the criteria used to select the records for update, otherwise you would end up modifying the wrong set of data. I would not recommend the ad-hoc approach you have mentioned in your example, but if you had to do such an update in SQL here is an exemplar (with made-up field and table names, of course)

Expand|Select|Wrap|Line Numbers
  1. UPDATE tblPeople SET letter_sent = True
  2. WHERE Left(Person_Surname, 1)='R';
-Stewart

PS mariostg got there first!
May 30 '11 #6
emandel
65
Is there anyway to do it within the table view itself and not go to the code side of things. The "r" was just one example. I want to be able to select a bunch of records and change the data in one field in all of those records all at once.
May 30 '11 #7
NeoPa
32,556 Expert Mod 16PB
Only clumsily. You could select each desired record, which would involve updating them all anyway, then you could reprocess through the form's associated recordset setting the controls to whatever you want. For a number of reasons I would not recommend this.

Remember, if you're in a form environment and make a multiple update using SQL, you will need to call .Refresh (or .Requery) after it's completed in order for the changes to be reflected in your form.
May 30 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ASIF | last post by:
Does anyone klnow of a quick way of exporting data from access to a text doucument, the data needs to be tab seperated, and the data to be exported needs to be selected using parameter queries. I...
0
by: lewang | last post by:
I am trying to get data from Access through a SQL query from Excel via VBA: but i get an error of "Run Time Error '-2147467259 (800040005)': Method 'Open' of object '_Recordset' failed" I have...
1
by: gssstuff | last post by:
Hi I have a need to send data from Access to an existing Excel template that I am using for reporting purposes. The nature of the data in the Access data table does not lend itself to a simple...
15
by: Marcus | last post by:
I created a VB.Net 1.1 application that iterates through all the tables in any basic Access 2000 database passed to it and generates the same table structure in a SQL Server Express database. The...
20
by: TC | last post by:
I need an automated procedure to copy data from an Access table to a SQL Server table. Speed is important. What is the recommended technique? I can export the data from Access, copy it via FTP,...
1
by: Mohsin | last post by:
Hi, any one can help me to save visual Basic Data in Access to link through Data control or ODBC. when i am trying to save vb data in Access after making link through data control it is not saving...
4
by: sharper | last post by:
Hi to all ! I have problem with C# and access databasses! I can't to insert new record in database , ( I mean I made grid view and connect him with a access database and made all things to...
0
by: =?Utf-8?B?QkFUT04=?= | last post by:
I have realy big problem I try lot of things but never success! I need a HELP! Problem is in that I made database in Microsoft access and connect her to C# form and datagridview. and it...
1
by: gudipati | last post by:
hi,i have one problem.actually we can retrieve data from access. what is my requirement is when i retrieve data from access i want to store in text areas. finely,we can store if they r textboxes...
1
by: yogeshbhardwaj | last post by:
I have an excel sheet. its format is like a group eport in access example given below: Soap Sr. no. Qty. Amount 1 15 150 2 ...
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
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.