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

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

Categories

HOME
winforms
gitlab
fluentd
framework7
getelementsbytagname
cvs
rsync
rubygems
sqlite3
jgroups
ckeditor
retrofit
echarts
awesome-wm
google-translate
row
u-sql
alignment
commonmark
fallback
flask-wtforms
circuit
transformation
ef-migrations
reactive-cocoa
google-pagespeed
visual-composer
tar
sox
java-7
android-widget
smb
facebook-access-token
bootstrap-material-design
linkerd
fluentvalidation
ping
replaceall
procdump
nameservers
contact-form
column-family
android-nestedscrollview
google-api-nodejs-client
revolution-slider
suricata
dynamics-crm-2013
c11
twitch
graphenedb
pdf-reactor
mime
s
qsslsocket
pnotify
statsd
typed-lambda-calculus
media-player
windows-iot-core-10
quartz-composer
visual-c++-2008
ableton-live
instant
xml-attribute
angstrom-linux
superstack
bluemix-app-scan
ios4
endeca-workbench
t4mvc
wordml
computer-algebra-systems
rgeo
arcanist
graph-drawing
key-management
tween
jscript.net
android-imagebutton
socketexception
onactivityresult
oracle-warehouse-builder
ril
eventual-consistency
mqx
bubble-chart
amazon-appstore
blackberry-playbook
joyent
locate
visitor-statistic
w3wp.exe
bespin
perfect-hash
database-management
multi-tier
adrotator
virtual-functions
phonon
genealogy
data-acquisition

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