writing expressions?

  • Thread starter Thread starter ABDUL MUMTAZ
  • Start date Start date
A

ABDUL MUMTAZ

=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
 
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
 
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
 
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 here:
http://www.mvps.org/access/netiquette.htm
 
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 here:
http://www.mvps.org/access/netiquette.htm
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access MS Access DCount function problem 0
Dcount returning no results!!! 0
DCount between dates 4
DCount Question 8
DSum expression not working 6
DCount error 7
Using a form to supply DCount Criteria 21
DoCmd.OpenForm 4

Back
Top