Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Question on MS Query in Excel

I have a spreadsheet that has an MS Query embedded in it.
The query pulls from a database and then returns the data
to the excel spreadsheet. I have a field that I'm
prompted for called Received Date. Right now, when I open
the spreadsheet I get a dialog prompting me for the date.
What I want to do is change this to automatically use the
current date.

I right click on the data in the spreadsheet and select
edit query. Here is where I need help. I can't seem to
pinpoint the syntax to use today's date. I've tried
=Today()
=Date

and so on. Can any one tell me how to do this?
Thanks
Bill
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Question on MS Query in Excel

I've used

=Now()

successfully in the past to set today's date...have you
tried that

Michael Bond

-----Original Message-----
I have a spreadsheet that has an MS Query embedded in

it.
The query pulls from a database and then returns the data
to the excel spreadsheet. I have a field that I'm
prompted for called Received Date. Right now, when I

open
the spreadsheet I get a dialog prompting me for the

date.
What I want to do is change this to automatically use the
current date.

I right click on the data in the spreadsheet and select
edit query. Here is where I need help. I can't seem to
pinpoint the syntax to use today's date. I've tried
=Today()
=Date

and so on. Can any one tell me how to do this?
Thanks
Bill
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Question on MS Query in Excel

I just did tried it and get the error: 'Now' is not a
recoginzed function name. Satement(s) can not be
prepared. Same thing with Today and Date.

Thanks!
Bill


-----Original Message-----
I've used

=Now()

successfully in the past to set today's date...have you
tried that

Michael Bond

-----Original Message-----
I have a spreadsheet that has an MS Query embedded in

it.
The query pulls from a database and then returns the

data
to the excel spreadsheet. I have a field that I'm
prompted for called Received Date. Right now, when I

open
the spreadsheet I get a dialog prompting me for the

date.
What I want to do is change this to automatically use

the
current date.

I right click on the data in the spreadsheet and select
edit query. Here is where I need help. I can't seem to
pinpoint the syntax to use today's date. I've tried
=Today()
=Date

and so on. Can any one tell me how to do this?
Thanks
Bill
.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Question on MS Query in Excel

What is the SQL statement you are using?

P


"Bill" wrote in message
...
I have a spreadsheet that has an MS Query embedded in it.
The query pulls from a database and then returns the data
to the excel spreadsheet. I have a field that I'm
prompted for called Received Date. Right now, when I open
the spreadsheet I get a dialog prompting me for the date.
What I want to do is change this to automatically use the
current date.

I right click on the data in the spreadsheet and select
edit query. Here is where I need help. I can't seem to
pinpoint the syntax to use today's date. I've tried
=Today()
=Date

and so on. Can any one tell me how to do this?
Thanks
Bill



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Question on MS Query in Excel

Here is the SQL...Thanks!

SELECT CallLog.CallID, Subset.LASTNAME, Subset.FIRSTNAME,
CallLog.CallType, CallLog.ShortDesc, CallLog.RecvdBy,
CallLog.RecvdDate, CallLog.RecvdTime, CallLog.ModBy,
CallLog.ModDate, CallLog.ModTime, CallLog.Tracker
FROM heatdb.dbo.CallLog CallLog, heatdb.dbo.Subset Subset
WHERE Subset.CallID = CallLog.CallID AND
((CallLog.Tracker='HaggardB') AND (CallLog.RecvdDate=?))
ORDER BY CallLog.Tracker, CallLog.RecvdDate,
CallLog.ModDate


-----Original Message-----
What is the SQL statement you are using?

P


"Bill" wrote in message
...
I have a spreadsheet that has an MS Query embedded in

it.
The query pulls from a database and then returns the

data
to the excel spreadsheet. I have a field that I'm
prompted for called Received Date. Right now, when I

open
the spreadsheet I get a dialog prompting me for the

date.
What I want to do is change this to automatically use

the
current date.

I right click on the data in the spreadsheet and select
edit query. Here is where I need help. I can't seem to
pinpoint the syntax to use today's date. I've tried
=Today()
=Date

and so on. Can any one tell me how to do this?
Thanks
Bill



.



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 2007 query question Gary Keramidas Excel Discussion (Misc queries) 9 November 20th 09 08:41 PM
question about using MS Query in Excel Gina[_2_] Excel Worksheet Functions 1 January 16th 09 04:57 AM
Parameter question on query in Excel (Repost) Leanne M (Aussie) Excel Discussion (Misc queries) 0 April 29th 08 10:12 AM
Parameter question on Query in Excel Leanne Excel Discussion (Misc queries) 8 April 25th 08 04:59 PM
Excel New Web Query Question _Nate Excel Discussion (Misc queries) 0 January 7th 08 08:19 PM


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