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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel query to access database



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2010, 09:53 AM posted to microsoft.public.excel.misc
Piotr
external usenet poster
 
Posts: 6
Default Excel query to access database

Hi,

Could you help me to find solution for my problem please?

I’m not very good in Excel and Access but have to create Excel spread sheet
which will take data from Access DB. I almost done it but have one problem
which not able to find solution.

When I create query in Excel using “Query Wizard” there is a step called
“Filter Data”. I would like to use filter for the table like that: Company
Name – equals – Contoso. My problem is that instead using “Contoso” I would
like to take value from filed in Excel document (like $c$2).

Is it possible? How to do this?

Thank you and Kind Regards

  #2  
Old April 15th, 2010, 11:22 AM posted to microsoft.public.excel.misc
Jarek Kujawa[_2_]
external usenet poster
 
Posts: 775
Default Excel query to access database

record a macro while creating the query
Tools-Macro-Macros and select your macro, press Edit
go to the SELECT clause and change your filtering condition
accordingly

from
"WHERE (Company Name='Contoso')")

to
"WHERE (Company Name=" & Range("F1").Value & ")")

then use the macro every time you need to generate new data

HIH
pls click YES if it was helpful


On 15 Kwi, 10:53, Piotr wrote:
Hi,

Could you help me to find solution for my problem please?

Im not very good in Excel and Access but have to create Excel spread sheet
which will take data from Access DB. I almost done it but have one problem
which not able to find solution.

When I create query in Excel using Query Wizard there is a step called
Filter Data. I would like to use filter for the table like that: Company
Name equals Contoso. My problem is that instead using Contoso I would
like to take value from filed in Excel document (like $c$2).

Is it possible? How to do this?

Thank you and Kind Regards


  #3  
Old April 15th, 2010, 01:40 PM posted to microsoft.public.excel.misc
Piotr
external usenet poster
 
Posts: 6
Default Excel query to access database

Dziekuje bardzo za pomoc i pozdrawiam.

"Jarek Kujawa" wrote:

record a macro while creating the query
Tools-Macro-Macros and select your macro, press Edit
go to the SELECT clause and change your filtering condition
accordingly

from
"WHERE (Company Name='Contoso')")

to
"WHERE (Company Name=" & Range("F1").Value & ")")

then use the macro every time you need to generate new data

HIH
pls click YES if it was helpful


On 15 Kwi, 10:53, Piotr wrote:
Hi,

Could you help me to find solution for my problem please?

I’m not very good in Excel and Access but have to create Excel spread sheet
which will take data from Access DB. I almost done it but have one problem
which not able to find solution.

When I create query in Excel using “Query Wizard” there is a step called
“Filter Data”. I would like to use filter for the table like that: Company
Name – equals – Contoso. My problem is that instead using “Contoso” I would
like to take value from filed in Excel document (like $c$2).

Is it possible? How to do this?

Thank you and Kind Regards


.

  #4  
Old April 22nd, 2010, 10:23 AM posted to microsoft.public.excel.misc
Jarek Kujawa[_2_]
external usenet poster
 
Posts: 775
Default Excel query to access database

proszę bardzo

postaw mi proszę ocenę (gwiazdki) jeśli Ci pomogłem

On 15 Kwi, 14:40, Piotr wrote:
Dziekuje bardzo za pomoc i pozdrawiam.



"Jarek Kujawa" wrote:
record a macro while creating the query
Tools-Macro-Macros and select your macro, press Edit
go to the SELECT clause and change your filtering condition
accordingly


from
"WHERE (Company Name='Contoso')")


to
"WHERE (Company Name=" & Range("F1").Value & ")")


then use the macro every time you need to generate new data


HIH
pls click YES if it was helpful


On 15 Kwi, 10:53, Piotr wrote:
Hi,


Could you help me to find solution for my problem please?


I’m not very good in Excel and Access but have to create Excel spread sheet
which will take data from Access DB. I almost done it but have one problem
which not able to find solution.


When I create query in Excel using “Query Wizard” there is a step called
“Filter Data”. I would like to use filter for the table like that: Company
Name – equals – Contoso. My problem is that instead using “Contoso” I would
like to take value from filed in Excel document (like $c$2).


Is it possible? How to do this?


Thank you and Kind Regards


.- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


 




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 07:49 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.