I use this query multiple time, but not work in access i also use:- Select max(Cast(receipt_no as int)) From Receipt Both not working in access db Why???/
You need to convert your nvarchar datatype to int before calling max function. The working query given below: Select max(Convert(int,receipt_no)) From Receipt
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Access Query is :- SELECT Max(Val(receipt_no)) AS rcptno FROM Receipt
i also use:-
Select max(Cast(receipt_no as int)) From Receipt
Both not working in access db
Why???/
Select max(Convert(int,receipt_no)) From Receipt