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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

writing expressions?



 
 
Thread Tools Display Modes
  #1  
Old May 11th, 2009, 12:24 PM posted to microsoft.public.access.tablesdbdesign
ABDUL MUMTAZ[_2_]
external usenet poster
 
Posts: 3
Default writing expressions?

=DCount("OrderID";"[Cusoms]" Between " [Field18]" And "[Field23]"='" &
Forms!"[GenerlaOrders]"Between"[Text102]ÙŽ"And"[Text100]""')
Hi every body,
this expression is written in the form to count orders between 2 dates on
the General orders form which use the same dates as control source of the
table customs, no error message is received but no calculation is done.please
help me out with it
  #2  
Old May 11th, 2009, 05:01 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default writing expressions?

How do you know that "no calculation is done" -- what happens?

Have you tried checking Access HELP for the syntax and examples of
DLookup()?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"ABDUL MUMTAZ" wrote in message
...
=DCount("OrderID";"[Cusoms]" Between " [Field18]" And "[Field23]"='" &
Forms!"[GenerlaOrders]"Between"[Text102]?"And"[Text100]""')
Hi every body,
this expression is written in the form to count orders between 2 dates on
the General orders form which use the same dates as control source of the
table customs, no error message is received but no calculation is
done.please
help me out with it



  #3  
Old May 11th, 2009, 05:39 PM posted to microsoft.public.access.tablesdbdesign
BruceM[_4_]
external usenet poster
 
Posts: 558
Default writing expressions?

You have posted this same question separately in at least three different
groups. Cross-post (one message to several groups at once) if you must, but
avoid mulit-posting (copies of the same message to several different
groups). More he
http://www.mvps.org/access/netiquette.htm


"ABDUL MUMTAZ" wrote in message
...
=DCount("OrderID";"[Cusoms]" Between " [Field18]" And "[Field23]"='" &
Forms!"[GenerlaOrders]"Between"[Text102]?"And"[Text100]""')
Hi every body,
this expression is written in the form to count orders between 2 dates on
the General orders form which use the same dates as control source of the
table customs, no error message is received but no calculation is
done.please
help me out with it



  #4  
Old May 11th, 2009, 05:52 PM posted to microsoft.public.access.tablesdbdesign
Clifford Bass[_2_]
external usenet poster
 
Posts: 1,295
Default writing expressions?

Hi Abdul,

There is a problem with the construction of the parameters of the
function. To get a count of general orders between two dates try:

=DCount("[OrderID]","[your table's name]","[GeneralOrders] Between #" &
[Text102]ÙŽ & "# And #" & [Text100] & "#")

It is not clear how the "[Cusoms]" Between " [Field18]" And
"[Field23]"='" part is about. It also is malformed.

Do a search in Access's online help for DCount for more details on the
function.

Clifford Bass

"ABDUL MUMTAZ" wrote:

=DCount("OrderID";"[Cusoms]" Between " [Field18]" And "[Field23]"='" &
Forms!"[GenerlaOrders]"Between"[Text102]ÙŽ"And"[Text100]""')
Hi every body,
this expression is written in the form to count orders between 2 dates on
the General orders form which use the same dates as control source of the
table customs, no error message is received but no calculation is done.please
help me out with it

 




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 08:05 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.