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

SQL SELECT Query on related table
Assistance with combo box using lookup table - MS Access
MS access : how to add 1 row between 2 rows?
Access 2010 Error Accessing the system registry
How to edit subform based on joined tables in Access 2010
Textfield in Access 2003 query replaced by squares and asian symbols
Where do I put Access vba code to only fire when physically printing?
Loop through Access tables
Pass Parameter to Stored Procedure
Access 2007 VBA GoToRecord issue
MS Access 2012 Unresponsive to clicks when it has focus on citrix
Error 3155 (ODBC--insert on a linked table 'SAMPLE' failed)
I keep on getting an error 13 type mismatch error, How can I get it out?
MS Access Mark Duplicates in order of appearance
MS access: how to embed JPEG images and preview them?
Problems implementing basic VBA in Access 2007

Categories

HOME
java
ionic-framework
single-sign-on
vmware
xmpp
google-docs
cmd
webpack-2
ojdbc
ezpublish
onelogin
add
wheelnav.js
correlation
spring-tool-suite
remote-access
solaris-10
crystal-reports-2008
crosstab
numerical-methods
javacv
facet
facebook-access-token
react-css-modules
brunch
rst2pdf
spring-mybatis
flink-streaming
nat
yadcf
http-get
usbserial
normal-distribution
appfabric
main
swisscomdev
withings
reportbuilder
email-templates
pdf-reactor
g-code
quadratic-programming
texmaker
botbuilder
sas-jmp
qsslsocket
powercli
togetherjs
statsd
csound
lift-json
nsarray
python-cryptography
spring-cache
hover-over
uid
cannon.js
cyclomatic-complexity
jmeter-maven-plugin
django-unittest
wireshark-dissector
ibaction
ideamart
appfabric-cache
graph-api-explorer
apache-commons-net
javax.mail
gui-test-framework
cdt
rdtsc
issuu
.aspxauth
mylyn
rabl
random-seed
sqlperformance
clipper
unc
manchester-syntax
javaspaces
newtonscript
twrequest
tridion-worldserver
punbb
gwt-ext
qt-jambi
table-footer
lang
w3wp.exe
wise
gin
nhibernate.search
substrings
memory-size
exchange-server-2003
pascal-fc
private-members
ubuntu-9.04
grid-system

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