Hi,
Want to have a constant value stored in a variable or field and
then use it in every different queries to avoid prompts ?
Help/suggestion way to get a constant value without typing on every prompt ?
Thx,
Ken
Want to have a constant value stored in a variable or field and
then use it in every different queries to avoid prompts ?
Code:
e.g.
1) Created a table with constant value
Example: Table: tblItem and
field: fldItemNbr with a value item1001
2) Below query gives error.
[COLOR=#CC0000]Syntax Error. in query express (select....).[/color]
[b]select (select max(fldItemNbr) from tblItem) as ItemNbr,
SubItem, ItemName, sum(Qty)
from TableMtrl
GROUP BY ItemNbr,SubItem, ItemName
[/b]
This Works:
SELECT O.CustomerID, O.OrderDate
FROM Orders O
WHERE (((O.OrderDate)=(select max(fldDate) from tbl01)));
Help/suggestion way to get a constant value without typing on every prompt ?
Thx,
Ken