473,499 Members | 1,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

operand without an operator

46 New Member
this code looks perfect to me - what am i doing wrong to get the error?

=IIf([Conftype]=41,"Morning Reports",IIf([ConfType]=4,"Noon Conference",IIf([ConfType]=9,"Grand Rounds")))
Jul 5 '07 #1
3 12745
garethfx
49 New Member
Nothing - it works in a query if you have places a name before the te statement

IE. Conference_Type:=IIf([Conftype]=41,"Morning Reports",IIf([ConfType]=4,"Noon Conference",IIf([ConfType]=9,"Grand Rounds")))

If you have just

=IIf([Conftype]=41,"Morning Reports",IIf([ConfType]=4,"Noon Conference",IIf([ConfType]=9,"Grand Rounds")))
Then its not going to work as its not asigned
else

Look at the table what have you designated the 41, 4 , 9 ETC as, is it text or number??

The IIF statement is expecting a number I suspect you have it as TEXT
If this is the case place "" around the 41 etc
=IIf([Conftype]="41","Morning Reports",IIf([ConfType]="4","Noon Conference",IIf([ConfType]="9","Grand Rounds")))


Gareth
Jul 5 '07 #2
teneesh
46 New Member
Thanks - the numbers are declared as numbers. the statement is in the property box in access under source for the value (on the report design) ConfType.


Nothing - it works in a query if you have places a name before the te statement

IE. Conference_Type:=IIf([Conftype]=41,"Morning Reports",IIf([ConfType]=4,"Noon Conference",IIf([ConfType]=9,"Grand Rounds")))

If you have just

=IIf([Conftype]=41,"Morning Reports",IIf([ConfType]=4,"Noon Conference",IIf([ConfType]=9,"Grand Rounds")))
Then its not going to work as its not asigned
else

Look at the table what have you designated the 41, 4 , 9 ETC as, is it text or number??

The IIF statement is expecting a number I suspect you have it as TEXT
If this is the case place "" around the 41 etc
=IIf([Conftype]="41","Morning Reports",IIf([ConfType]="4","Noon Conference",IIf([ConfType]="9","Grand Rounds")))


Gareth
Jul 5 '07 #3
kepston
97 Recognized Expert New Member
Thanks - the numbers are declared as numbers. the statement is in the property box in access under source for the value (on the report design) ConfType.
The ControlSource for ConfType can not be an expression that checks itself.
Where and when does your error appear?
Jul 6 '07 #4

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

Similar topics

4
1779
by: John Doe | last post by:
I've got the action '+' stored as the variable 'plus', that is plus='+' Now I want to use the variable plus in an equation: 5 plus 7, just line 5 + 7 How do I do that? Dan
1
4999
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...
2
4033
by: Dylan Parry | last post by:
Hi folks, I've been getting the following warning when compiling my code, "Bitwise-or operator used on a sign-extended operand; consider casting to a smaller unsigned type first", and although...
1
3772
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...
19
2479
by: Rajesh S R | last post by:
Consider the following code: int main() { struct name { long a; int b; long c; }s={3,4,5},*p; p=&s;
7
5022
by: somenath | last post by:
Hi All, I am trying to undestand "Type Conversions" from K&R book.I am not able to understand the bellow mentioned text "Conversion rules are more complicated when unsigned operands are...
6
1870
by: captainmorgan | last post by:
I have attempted to use the following IIF statement in a query, with no success. Iif(="580" OR "585", Iif(Month()=Month(Now()), =+40), Iif(Month()=Month(Now()), =+100)...
4
5998
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...
8
4484
by: glitke | last post by:
I need the quantity entered in a field to be <= a certain quantity. I've opened the field properties and entered the following under the "Validation Rule". <= ( sum ( ( ! ) Where ( ( ! = ) AND (...
5
26369
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...
0
7007
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...
0
7386
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...
0
5468
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,...
1
4918
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...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
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 ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
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...

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.