473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Compile Error in Query Expression

natalie99
Hello everyone!

I am running a very simple query to populate null fields, and for some reason it has decided to stop working!!!

What happened????

Expand|Select|Wrap|Line Numbers
  1. SELECT LIVE_150108.Region, LIVE_150108.Country, nz([Surcharges],"ZZ") AS SurchargesNZ, LIVE_150108.[Non PriceBook Reason Code]
  2. FROM LIVE_150108;
  3.  
THANKS FOR HELP IN ADVANCE!!

:) Nat
Mar 27 '08 #1
4 3348
FYI: The error message when I try to run the query says:

Compile error . in query expression nz([Surcharges],"ZZ") .
Mar 27 '08 #2
ADezii
8,834 Expert 8TB
Hello everyone!

I am running a very simple query to populate null fields, and for some reason it has decided to stop working!!!

What happened????

Expand|Select|Wrap|Line Numbers
  1. SELECT LIVE_150108.Region, LIVE_150108.Country, nz([Surcharges],"ZZ") AS SurchargesNZ, LIVE_150108.[Non PriceBook Reason Code]
  2. FROM LIVE_150108;
  3.  
THANKS FOR HELP IN ADVANCE!!

:) Nat
Are you trying to Update Null Values in the [Surcharges] Field to "ZZ", if so?
Expand|Select|Wrap|Line Numbers
  1. UPDATE LIVE_150108 SET LIVE_150108.Surcharges = "ZZ" WHERE LIVE_150108.Surcharges Is Null;
Mar 27 '08 #3
Thanks Adezii!

Any idea why the db started doing this? I checked every library and even re-registered them. Is this oign to happen everytime the software updates run???

Thanks again.

Nat
Mar 28 '08 #4
Thanks Adezii!

Any idea why the db started doing this? I checked every library and even re-registered them. Is this oign to happen everytime the software updates run???

Thanks again.

Nat
I hope you get an answer to this. My NZ function has stopped working also, in spite of checking and resetting all my references. Now, in code, I have to explicitly check if a value is null and if so, set it to what would have been my NZ default. Don't know why....
Mar 28 '08 #5

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

Similar topics

29
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
5
by: deko | last post by:
After developing an MDB in Access 2003 on WS03, then making it into an MDE and deploying it on a WinXP box with Access 2003 installed, I get this error: Function is not available in expressions...
10
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data...
1
by: amitbadgi | last post by:
I am geting the following error while conv an asp to asp.net Exception Details: System.Runtime.InteropServices.COMException: Syntax error in query expression 'id =System.__ComObject'. Source...
7
by: John Øllgård Jensen | last post by:
Hi Using MS Asccess 2000: In a query I'm trying to create a new field with following expression: FilmDate: Left(,4) The field "FilmNo" is another text field in the query. This is...
3
by: ncsthbell | last post by:
I am pulling my hair out on this! Seems like it should be easy, I just can not get it to work like I want. I know I am doing something wrong, so I hope someone can be so kind to guide me!!! I...
5
by: Just_a_fan | last post by:
I tried to put an "on error" statement in a routine and got the message that I cannot user "on error" and a lamda or query expression in the same routine. Help does not list anything useful for...
17
by: MLH | last post by:
I have tested the following in immed window: ?isnumeric(1) True ?isnumeric(1.) True ?isnumeric(1.2) True ?isnumeric(1.2.2)
3
by: dunerat | last post by:
Greetings all. i am trying to write an expression in a query to return a library fine calculated from the due and return dates of a book. i have the expression below, which was working fine when...
7
by: Yesurbius | last post by:
I am receiving the following error when attempting to run my query. In my mind - this error should not be happening - its a straight-forward query with a subquery. I am using Access 2003 with all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.