LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
David494
 
Posts: n/a
Default Input boxes in excel and MS Query


I'm using MS Excel to display the results of a SQL Server database,
using the GET EXTERNAL DATA wizard, which then takes you to Microsoft
Query so you can set up the SQL coding.

I was having difficulty writing the SQL using MS Query, so I set up the
same scenario in MS Access to write a query, then just pasted the query
into MS Query. Unfortunately the code does not work and I get a
"Invalid column name What is the start date" error

What I'm actually trying to do is get two input boxes to appear each
time the spreadsheet is opened. The user types the FROM and TO dates
into these boxes and all values between those dates are displayed.


Here is the code I pasted from Access to MS Query anyway........

SELECT CallLogRevenues.category, CallLogRevenues.enquiryDescription,
CallLogRevenues.resolution, CallLogRevenues.startDateTime,
CallLogRevenues.endDateTime, CallLogRevenues.totalDateDiff
FROM CallLogRevenues
WHERE (((CallLogRevenues.startDateTime)=[What is the start date?]) AND
((CallLogRevenues.endDateTime)=[What is the end date?]));

So does anyone know how to display the input boxes using MS Query.

Thanks for any help

Dave


--
David494
------------------------------------------------------------------------
David494's Profile: http://www.excelforum.com/member.php...o&userid=24482
View this thread: http://www.excelforum.com/showthread...hreadid=380880

 
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
Linking parameter query from Access to pivot table in Excel ken1975 Excel Discussion (Misc queries) 2 June 20th 06 01:51 PM
Two Input Data Tables in Excel tango Excel Discussion (Misc queries) 1 April 26th 05 01:08 PM
Excel and Query aehan Excel Discussion (Misc queries) 1 April 1st 05 04:44 PM
web query for Excel QLS_KIM Excel Worksheet Functions 0 March 8th 05 05:20 PM
Excel Query Via Sybase Gary Excel Discussion (Misc queries) 1 December 7th 04 07:58 PM


All times are GMT +1. The time now is 01:15 PM.

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"