I am building an application and using MS Access as database(Normally I don't use MS Access but the client needs service-less database). Anyways, I have multiple tables and using joins, I am trying to acquire output, here is the query
SELECT tblSalesDetail.Sales_Details_ID, tblProduct.Product_Name,
tblSalesDetail.Rate, tblSalesDetail.Quantity, tblSalesDetail.TaxableAmount,
tblSalesDetail.TaxableAmount + tblSalesDetail.CGST_Amt +
tblSalesDetail.SGST_Amt + tblSalesDetail.IGST_Amt AS TotalAmt
FROM tblSalesMain
INNER JOIN tblSalesDetail
ON tblSalesMain.Sales_Main_ID = tblSalesDetail.Sales_Main_ID
INNER JOIN tblProduct
ON tblSalesDetail.Product_ID = tblProduct.Product_ID
WHERE tblSalesMain.Sales_Main_ID=1
This query works perfectly in SQL Server but having the following error when trying to run in MS Access with text selected at _Name
at tblProduct.Product_Name
in the first line.
I tried by changing or removing that column, but it's not working.
I tried StackOverflow answers posted but none of them worked by the way. So it's not like I am directly posting a question here without trying to solve this.
I know this might be a simple problem but I am stuck. Let me know workaround this.
I know this is off the above topic but can anyone suggest me good service-less, localdb (not mdf based SQL Db) for visual studio?
Regards