#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default msquery


I am interested in creating a field in query based on the values in
existing fields. If the value in field A = 'Y' then insert value in
field B, else do nothing. I get syntax errors, but nothing that is
helpful to correct the 'error'.




--
troestj
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default msquery

If you are trying to return to Excel, only those items from column B of the
file you're interrogating that have a corresponding "Y" in column A, then you
can do this by recording a macro to import both columns A and B, with the
condition of only importing rows containing a "Y" in column A, and then
deleting column A once it's in Excel.........

hth
Vaya con Dios,
Chuck, CABGx3


"troestj" wrote:


I am interested in creating a field in query based on the values in
existing fields. If the value in field A = 'Y' then insert value in
field B, else do nothing. I get syntax errors, but nothing that is
helpful to correct the 'error'.




--
troestj

Reply
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
msquery in Excel 2007 Philippe Cand Excel Discussion (Misc queries) 1 June 22nd 06 03:06 AM
MSQuery editing source data? Dave H Excel Discussion (Misc queries) 0 April 21st 06 04:41 PM
MsQuery Documentation [email protected] Excel Discussion (Misc queries) 0 March 28th 06 04:55 PM
MSQuery "disappearing" taylorm Excel Discussion (Misc queries) 0 November 18th 05 09:08 PM
Multiple ODBC Database lik in one MSQUERY query Alain79 Excel Discussion (Misc queries) 0 September 13th 05 12:25 PM


All times are GMT +1. The time now is 02:38 AM.

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

About Us

"It's about Microsoft Excel"