ms-access


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'

Related Links

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
Dropdownmenu's linked?
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)

Categories

HOME
openmp
proxy
azure-data-factory
hp-exstream
bpmn
cplex
youtube-dl
spring-jdbc
packages
survey
basic
facebook-messenger-bot
session-variables
apache-cayenne
timeout
remote-access
vaadin7
worldwind
ef-migrations
undefined
openedx
visjs
cx-freeze
web-sql
format-specifiers
lcd
icloud-api
blazemeter
java-7
smb
microsoft-sync-framework
tdd
info.plist
saas
jspresso
noraui
stringtemplate
hybridauth
openoffice.org
mapbox-gl
force-layout
android-ble
main
simplexml
restlet
code-search-engine
angularjs-factory
awt
email-templates
estimote
heightmap
thin
btrace
wptoolkit
apple-news
paxos
gabor-filter
jxcore
knockout-components
color-profile
angular-strap
android-fonts
vmware-tools
android-textview
ado.net-entity-data-model
firebaseui
dlna
captivenetwork
ios8-today-widget
quicklisp
map-projections
createprocessasuser
nsbutton
bitcoinj
project-planning
contenttype
rebol3
centos5
uv-mapping
dexterity
tidy
coverflow
django-nonrel
delphi-6
jquery-knob
gil
cisco-jtapi
twrequest
osql
php-parser
window-management
deobfuscation
web-application-design
audio-capture
aquaticprime
dbisam
ajax-forms

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App