A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Month-to-date



 
 
Thread Tools Display Modes
  #21  
Old December 1st, 2009, 05:38 PM posted to microsoft.public.access
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Month-to-date

Karim -

Can you explain what you mean by 'not working'? Today is the 1st of the
month, so I would expect no results until a near miss for December is added.

Are you getting an error message?

--
Daryl S


"karim" wrote:

in another way:

Month To Date: = DateSerial(Year(Date()), Month(Date()), 1)


This code is what I need, but it's not working in the criteria...

  #22  
Old December 1st, 2009, 05:38 PM posted to microsoft.public.access
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Month-to-date

Karim -

Can you explain what you mean by 'not working'? Today is the 1st of the
month, so I would expect no results until a near miss for December is added.

Are you getting an error message?

--
Daryl S


"karim" wrote:

in another way:

Month To Date: = DateSerial(Year(Date()), Month(Date()), 1)


This code is what I need, but it's not working in the criteria...

  #23  
Old December 1st, 2009, 05:38 PM posted to microsoft.public.access
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Month-to-date

Karim -

Can you explain what you mean by 'not working'? Today is the 1st of the
month, so I would expect no results until a near miss for December is added.

Are you getting an error message?

--
Daryl S


"karim" wrote:

in another way:

Month To Date: = DateSerial(Year(Date()), Month(Date()), 1)


This code is what I need, but it's not working in the criteria...

  #24  
Old December 1st, 2009, 05:46 PM posted to microsoft.public.access
Karim
external usenet poster
 
Posts: 68
Default Month-to-date

yes, I am getting an error msg "#Name?"

I also added a record for today just to try it.

Basically what I am doing is I made a form and I have a text box that
suppose to show the totla records in it, but it's giving me that error.
  #25  
Old December 1st, 2009, 05:46 PM posted to microsoft.public.access
Karim
external usenet poster
 
Posts: 68
Default Month-to-date

yes, I am getting an error msg "#Name?"

I also added a record for today just to try it.

Basically what I am doing is I made a form and I have a text box that
suppose to show the totla records in it, but it's giving me that error.
  #26  
Old December 1st, 2009, 05:46 PM posted to microsoft.public.access
Karim
external usenet poster
 
Posts: 68
Default Month-to-date

yes, I am getting an error msg "#Name?"

I also added a record for today just to try it.

Basically what I am doing is I made a form and I have a text box that
suppose to show the totla records in it, but it's giving me that error.
  #27  
Old December 1st, 2009, 06:39 PM posted to microsoft.public.access
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Month-to-date

That's probably due to an element of the calculation referring to an
object name that does not exist.
Given Price and Qty then a calculation like...
Prize * Qty = LineTotal
would yield a #Name? error.
Check the spelling in the calc vs. the real object names.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"karim" wrote in message
...
yes, I am getting an error msg "#Name?"

I also added a record for today just to try it.

Basically what I am doing is I made a form and I have a text box that
suppose to show the totla records in it, but it's giving me that error.



  #28  
Old December 1st, 2009, 06:39 PM posted to microsoft.public.access
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Month-to-date

That's probably due to an element of the calculation referring to an
object name that does not exist.
Given Price and Qty then a calculation like...
Prize * Qty = LineTotal
would yield a #Name? error.
Check the spelling in the calc vs. the real object names.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"karim" wrote in message
...
yes, I am getting an error msg "#Name?"

I also added a record for today just to try it.

Basically what I am doing is I made a form and I have a text box that
suppose to show the totla records in it, but it's giving me that error.



  #29  
Old December 1st, 2009, 06:39 PM posted to microsoft.public.access
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Month-to-date

That's probably due to an element of the calculation referring to an
object name that does not exist.
Given Price and Qty then a calculation like...
Prize * Qty = LineTotal
would yield a #Name? error.
Check the spelling in the calc vs. the real object names.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"karim" wrote in message
...
yes, I am getting an error msg "#Name?"

I also added a record for today just to try it.

Basically what I am doing is I made a form and I have a text box that
suppose to show the totla records in it, but it's giving me that error.



  #30  
Old December 1st, 2009, 08:14 PM posted to microsoft.public.access
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Month-to-date

Karim -

If you are using a query, can you post the SQL to your query (copy/paste
from the SQL View)? That will help us see what you are doing. I assume
this is the query behind the form?

--
Daryl S


"karim" wrote:

yes, I am getting an error msg "#Name?"

I also added a record for today just to try it.

Basically what I am doing is I made a form and I have a text box that
suppose to show the totla records in it, but it's giving me that error.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:46 PM.


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