SQL Query to MS SQL - Parameter Value
Trying to run this SQL query in MS Access but it keeps asking for parameter value. I am new to MS Access. Can you please help me with the query ? UPDATE AC_E2 a SET a.EXPRESSION = (Select "No : " & NO & " CAT : " & CAT from AC_E1 f WHERE a.NUM = f.NUM) WHERE a.PROPNUM = (Select PROPNUM from AC_E2 e WHERE e.EXPRESSION LIKE "No: #M.NO CAT: #M.CAT" and e.NUM = a.NUM) I am just trying to search a column in table AC_E2 which has this expression: No: #M.NO CAT: #M.CAT and am trying to replace the #M.NO and #M.CAT with their respective value from AC_E1 table.
In MS Access queries, the square brackets are a convention to prompt the user running the query to input a parameter. e.g. [EXPRESSION] will prompt the user to enter the value named, "EXPRESSION".
Got hint from this link and changed my query accordingly: How do I perform update query with subquery in Access? UPDATE AC_E2 a, AC_E1 b SET a.EXPRESSION = "No : " & b.NO & " CAT : " & b.CAT WHERE a.NUM = e.NUM AND a.EXPRESSION = 'No: #M.NO CAT: #M.CAT'
Access Input textbox on Data Access page with only select enabled to allow filter by searchs
Microsoft Access Query through VBA gets repeated?
What sort of functionality can I expect from exporting a Microsoft Access 2007 Database to a WSS 3.0 site?
query muliple fields with multiple values
Force OpenCurrentDatabase to use Access 2003
ACCESS/VBA: How to create a ON/OFF type switch to allow record modification on a form?
dsn for ms access 2003 in windows 7
How can I find all the MS Access security groups in VBA
Drop all connection to MS Access Database using ADO.NET
Import MS Access to CSV on Mac programmatically
MS Access - Is there a limit to Public Functions/Routines in MS Access? RTE #7?
Need to Allow Null or “” values for Dates - Access Query Data type mismatch
How to migrate MS access database to Oracle?
How to make a delete query in design view
Reserved error (-1524)