If by "bind these textboxes to the result of a query", you mean that you would like for the contents of the text box to be equal to or dependent up upon the results of the query, then you have a couple of options:[ol][li]Create a formula that calculates a whole or partial value to be returned in the Text Box[/li][li]Create a Subreport that returns the contents of the Text Box[/li][li]Create a SQL Expression field that returns a value to be used in the Text Box[/li][/ol]You'll need to provide a little more detail if you need more information...
If you still want to use a SQL Expression (generally more efficient than a formula if used as part of the Selection Criteria), then you need to encapsulate it in parentheses:
Code:
(
SELECT
MAX{Booking."BookingNo"}
FROM
Booking
)
Keep in mind that you must use the version of MAX that is valid for your database (MAX is the correct keyword for SQL Server, for example).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.