LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Cell value to replace hard code in Query

Hi All........
I have a macro that includes a Query that I have recorded and works fine.
It has hardcoded values in place for this section...... WHERE
(Q509M.Planner='LQ'....
I would like to be able to have a cell value replace the 'LQ' part. I have
tried numerous combinations and no joy.

I sucessfully use DBQ=" & NewFile & ";" in another part of the same Query
and it works fine to insert a Range().value assigned to NewFile, but just
can't seem to get this WHERE thing to cooperate.

Any help would be much appreciated.

Vaya con Dios,
Chuck, CABGx3


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace a word with hard return code Curious[_6_] Excel Programming 3 July 29th 08 12:21 PM
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
Seeking the character code for entering a Hard Return in a cell? JKing Excel Discussion (Misc queries) 2 June 4th 08 11:06 PM
how to replace a hard return? go1angel Excel Programming 1 July 22nd 05 07:51 PM
Replacing hard code with reference to a cell value jojo Excel Programming 2 March 6th 05 02:51 PM


All times are GMT +1. The time now is 08:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"