473,624 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Operand without Operator error in conditional DLookup

1 New Member
I am trying to use the below statement to derive only the count for Over Budget
=DLookUp("[CountOfMonthly Completion Status]","[Query13 Monthly Project Completion Status]","[Monthly Completion Status] Like """ & Over Budget & """")

[CountOfMonthly Completion Status]-is the value field
]","[Query13 Monthly Project Completion Status] -is the name of the query
It runs FINE till here.
But, when I include or try to include only those value where we have "Over Budget" as the text in Query column [Monthly Completion Status], it starts giving me the error -The expression you entered contains Invalid syntax. You have entered an operand without an operator"
Oct 13 '17 #1
2 2920
PhilOfWalton
1,430 Recognized Expert Top Contributor
Try
Expand|Select|Wrap|Line Numbers
  1. "[Monthly Completion Status] = Chr$(34) & "Over Budget" & Chr$(34))
  2.  
or
Expand|Select|Wrap|Line Numbers
  1. "[Monthly Completion Status] Like Chr$(34) & "*Over Budget*" & Chr$(34))
  2.  
Phil
Oct 13 '17 #2
PhilOfWalton
1,430 Recognized Expert Top Contributor
Whoops Typo error
Expand|Select|Wrap|Line Numbers
  1. "[Monthly Completion Status] = " & Chr$(34) & "Over Budget" & Chr$(34))
  2.  
or
Expand|Select|Wrap|Line Numbers
  1. "[Monthly Completion Status] Like " &  Chr$(34) & "*Over Budget*" & Chr$(34))
  2.  
Phil
Oct 13 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5031
by: jayj0nes | last post by:
I'm querying a Mas90 db via ADO in Access. The following SQL gives me the error "Invalid Operand for Operator: =" "SELECT * from GL_DetailPosting where PostingDate >= '#01/01/2004#'" These other queries work just fine, and they return valid data in the PostingDate field: "SELECT * from GL_DetailPosting" "SELECT * from GL_DetailPosting order by PostingDate DESC" Any ideas where I am going wrong? I've tried just about every syntax I
3
1326
by: Daylor | last post by:
hi. i want to destroy the application when i catch some exception. i have multithread app. how can i destroy the application and exit immedietly ?
0
1196
by: lambu76 | last post by:
Hi all, I've this strange problem. I've deployed a big and complicated ASP web application on different web server, all of them installed with Win 2000 Advanced Server SP3. I'm completly sure that my web application has no asp errors, but randomly and sometimes on one of these server Microsoft Script Debugger opens without an error inside.
2
4446
by: linq936 | last post by:
Hi, I have this piece code, struct TriStr { MyString str1; MyString str2; MyString str3; TriStr(MyString s1, MyString s2, MyString s3){ this->str1 = s1;
1
3784
by: Fir5tSight | last post by:
Hi, I am using a DataView to displaying a records from datatable. I have a filter that I define it as follows: "Status = '' || Status <'Scanned'" The problems is that I get an error about "Missing operand before '|' operator".
8
18754
by: pelicanstuff | last post by:
Hi - Was wondering if anybody could tell me why this rather crappy code is giving me an 'Else without If' error on compile? All the Elses and Ifs look ok to me but there's a few. Private Sub MySearchButtonClick() If gcfHandleErrors Then On Error GoTo PROC_ERR PushCallStack "MySearchButton" If Me.AllowFlexibility = True Then If Me.UseSpecialism = True And Me.UseCountryExperience = True Then If Me.Active = True...
4
6003
by: Light1 | last post by:
Hi - I am completely new to access - this is my first project and I have a question that is probably extremely easy for most. I am trying to take two fields of information and combine them in to one field on a report. I have the following code in the Control Source: =&” “& I receive the error "You may have entered an operand without an operator" What am I missing? From everything I have looked at, it seems like it should work. ...
5
26409
by: curtok | last post by:
I am having trouble trying to get and expression to work. I keep getting the same syntax error, you may have entered and operand without an operator. What i am trying to do: one field contains a number which start with either a 1, 2, 3, or 4 and I want the previous field to automatically fill in a correct item based on what the number starts with. This is the expression that I was trying to modify >...
1
1769
by: 1Iwan1 | last post by:
Help me I've tried this IIF statement but keep getting the Invalid Syntax error - "You may have entered an operand without an operator" Transaction: IIf(Stock>=0,"FirstSaldo","FirstSaldo") Any ideas? Solved! Thanks
0
8249
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8348
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2613
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.