A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Pasting data from Excel



 
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2009, 09:12 PM posted to microsoft.public.excel.newusers
David
external usenet poster
 
Posts: 1,494
Default Pasting data from Excel

Hello everyone,
I'm not sure if I should be posting this question here or in the Excel
forum but here goes. Is it possible to copy data from multiple cells in
Excel and then paste them into multiple lines of the criteria section of an
Access query? For example, Given cells and values: A1- 1
A2- 2
A3- 3
I would like to be able to copy this data from Excel and paste it into an
Access query like : Criteria: 1
or: 2
3

I am using Access 2002 SP3 and Excel 2002 SP3
--
Thanks,
David
  #2  
Old February 23rd, 2009, 09:45 PM posted to microsoft.public.excel.newusers
JLatham
external usenet poster
 
Posts: 3,017
Default Pasting data from Excel

Actually this did get posted in the Excel forum.

The answer to your question appears to be NO. I determined this simply by
creating a dummy database in Access with a table and then attempting to
create a query to extract data from the table and chose 3 cells with valid
criteria in them and pasted them into the criteria section of the query.
Boom! Error. All 3 values went into a single criteria row, so Access choked
on it.

"David" wrote:

Hello everyone,
I'm not sure if I should be posting this question here or in the Excel
forum but here goes. Is it possible to copy data from multiple cells in
Excel and then paste them into multiple lines of the criteria section of an
Access query? For example, Given cells and values: A1- 1
A2- 2
A3- 3
I would like to be able to copy this data from Excel and paste it into an
Access query like : Criteria: 1
or: 2
3

I am using Access 2002 SP3 and Excel 2002 SP3
--
Thanks,
David

  #3  
Old February 23rd, 2009, 11:11 PM posted to microsoft.public.excel.newusers
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default Pasting data from Excel

Hi,

When you paste multiple lines into the criteria row of and Access query, all
the entries go into one cell, you could then put an OR between each one, but
you would need to do it manually.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David" wrote:

Hello everyone,
I'm not sure if I should be posting this question here or in the Excel
forum but here goes. Is it possible to copy data from multiple cells in
Excel and then paste them into multiple lines of the criteria section of an
Access query? For example, Given cells and values: A1- 1
A2- 2
A3- 3
I would like to be able to copy this data from Excel and paste it into an
Access query like : Criteria: 1
or: 2
3

I am using Access 2002 SP3 and Excel 2002 SP3
--
Thanks,
David

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:00 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.