Solved

Another Syntax Issue

Posted on 2014-12-01
2
104 Views
Last Modified: 2014-12-01
What is wrong with:

=DMax("[QTY_ORDERED]","tblInventory","[PART_NO] = '" & [Reports]![rptQRY_REORDER_PT]![txtPART_NO] & "'"  AND "[TRNX_TYPE] = '"ORD"'")
0
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40474552
This last bit

"'"  AND "[TRNX_TYPE] = '"ORD"'")

Should be

"' AND [TRNX_TYPE] = 'ORD'")
0
 
LVL 34

Expert Comment

by:Mike Eghtebas
ID: 40474691
is [PART_NO] numeric? If so use:
=DMax("[QTY_ORDERED]","tblInventory","[PART_NO] = " & [Reports]![rptQRY_REORDER_PT]![txtPART_NO] & " AND  [TRNX_TYPE] = 'ORD'")

Open in new window


If it is text, then use as Philip has it, repeating all put together:
DMax("[QTY_ORDERED]","tblInventory","[PART_NO] = '" & [Reports]![rptQRY_REORDER_PT]![txtPART_NO] & "' AND  [TRNX_TYPE] = 'ORD'")

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question