Hi,@JXWD
Welcome to Microsoft T-SQL Q&A Forum!
First of all, confirm again whether you are a SQL Server database, because according to your description, the odbc connection function of the access database you use.
in Tsql, the following from table is not needed, because you are just printing the first two months date,, and did not get any information from the table, I guess your table stores data in a date format, you can use parameter to store date data.
SELECT DATEADD (month, -2, parameter) FROM TblCalibItems
Let's look at how to use the DateAdd function in MS Access:
Best regards,
Bert Zhou
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.