ms-access


MS Access Syntax error


here is my code:
Text22 = DLookup("[Program_No]", "1_Supportive_Housing", "[Program_Name] = '" & Replace([Me.Program_Name], "'", "''") & "' And [BudgetYear] = " & [Me.BudgetYear])
I am not sure what is wrong with it, but it keeps giving me the following error:
Can't find the field | in your expression
I have been trying to get rid of this error but nothing works.
OnKeyPress, this event triggers. As the user writes, it should be able to lookup the value in the table and assign it to text22.
Looks like you want to reference to form fields [Me.Program_Name] & [Me.BudgetYear], but Access tries to find fields with exactly this name, including "Me." prefix. Try to remove brackets at all, or use Me.[Program_Name] and Me.[BudgetYear] instead.

Related Links

MS Access - Speed Issue
MS Access 2016 - Updating Multiple Tables
Concatenated numbers stuck in scientific notation MS Access
ms access for each field
in access how to draw tables on Report and then export it on word
Automatically adding ID number from different table to new entries?
Access VBA Outlook MAPI- Prevent Record Update if email is not sent
data type mismatch error in criteria expression-ms access
Access Main Form 'Enter Parameter Value'
How to get a combobox2 to display records only relating to the selection made in combobox1?
Ms Access: Running an update query
Access Query that brings up decimal amounts
Access 2016 Processes not being killed during Automation but same works for Access 2013/10/07
Unable to use Multivalue field in an exsting Access form
Insert value from textbox into 2 different table ms-access
Access 2013 Expression Builder not displaying

Categories

HOME
log4j
testng
omnet++
lodash
iot
vmware
react-router
android-4.4-kitkat
yarn
paw-app
electronics
ip
disassembler
flyway4
datastax-java-driver
gitpitch
awesome-wm
maude-system
metatrader4
qt-creator
postgres-xl
apache-cayenne
jsdoc
google-static-maps
pythonanywhere
flux
tokenize
bootstrap-tour
devops
hammerspoon
firebase-crash-reporting
django-storage
wpfdatagrid
nhapi
facebook-apps
gitignore
instant-messaging
pdb
contact-form
google-sites-2016
perlin-noise
stringtemplate
vsts-build-task
dosbox
restlet
sqlite2
ensembles
keydown
qcombobox
convertapi
long-polling
filepicker
python-c-api
tizen-native-app
lowpass-filter
nstextview
drupal-6
pillow
imanage
orthogonal
static-ip-address
google-feed-api
removechild
mikroc
asp.net-4.5
fuzzy-search
clang-static-analyzer
holder.js
dataview
associative-array
javax.sound.midi
jmeter-maven-plugin
wordml
emailrelay
ionic
ibaction
sailfish-os
dundas
jsapi
npapi
gwidgets
camanjs
knuth
javafx-webengine
googlemock
eol
wp-query
rtmfp
farseer
django-nonrel
chronoforms
html-editor
cassini-dev
isnullorempty
mt
cisco-jtapi
cascalog
newtonscript
twrequest
viewswitcher
horizontal-accordion
yui-datatable
infrastructure
zend-tool
brewmp
privilege
putchar
windows-live-messenger

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