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'
How to set initial selections of controls in a MS access report on its load?
Access 2000 Timeouts on bound recordset
Query to a Meaningful Report
MS Access “duplicate values” error, but I don't know why
Generate uml from vba
Is it possible to change Msysobjects in ms access
How can I make MS-Access choose a different/the right execution plan for my query
Access 2007 Reports - How to 'unfix' fields?
Hide Access Options
MS Access “record changes” log
Format combox in Access 2007
MS Access how can a subform get the value from another subform?
Can you use ADO to edit table schema in MS Access?
Access 2010: 'the expression cannot be used in a calculated column'?
ACCESS SubForm: trying to add records
Checking social security numbers and business identity codes in Access 97