#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Excel 2007 queries

I am having a couple of issues with creating queries in Excel 07. First, how
do you create an aliasname for a field? in the past i've always done
tableName.fieldName AS aliasName. However, this is bringing back a "wrong
number of parameters error". Also, I have a query with an OR statement which
prompts for the user for a date range(see statements below)- Is there anyway
to do this so it won't prompt for the date range twice? Thanks ; )

((LN_ACCT.col_cd='COLL') AND (User_Def_Fields_LN_2.User_Defined_Field_6 Is
Not Null) AND (User_Def_Fields_LN_2.User_Defined_Field_7 Is Not Null) AND
(User_Def_Fields_LN_2.User_Defined_Field_8 Is Not Null) AND
(User_Def_Fields_LN_2.User_Defined_Field_9 Is Not Null) AND
(LN_ACCT.orig_ln_dt Between ? And ?) OR
(User_Def_Fields_LN_2.User_Defined_Field_6 Is Not Null) AND
(User_Def_Fields_LN_2.User_Defined_Field_7 Is Not Null) AND
(User_Def_Fields_LN_2.User_Defined_Field_8 Is Not Null) AND
(User_Def_Fields_LN_2.User_Defined_Field_9 Is Not Null) AND
(LN_ACCT.orig_ln_dt Between ? And ?) AND (LN_ACCT.pur_cd In
('AUT','BO/RV','MC','SCC','2CH','IND')))
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
Excel web queries using parameters Rob Cherry Excel Discussion (Misc queries) 6 March 19th 07 01:33 AM
2007 office Excel link Access Queries Donica Excel Worksheet Functions 0 February 17th 07 04:20 AM
Access Queries into Excel TKM Excel Worksheet Functions 1 November 13th 06 08:54 PM
Excel Queries Anselmo Links and Linking in Excel 4 July 14th 06 11:45 PM
Web Queries Excel 97 Dave Excel Discussion (Misc queries) 0 June 16th 06 05:23 AM


All times are GMT +1. The time now is 11:26 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"