473,413 Members | 1,731 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,413 software developers and data experts.

Replace NULL with 0 in Query

3
Hello Experts,

I'm a noob in access and would like to do the following in access2003:

I have tree tables A, B, C. Table A is master table and as unique ID for each line. Table B and C have data that is complement to table A.

Table B and C have a type 2 relationship with table A throw the unique id number in table A.

What happens is that in table B and C i don't have all the unique ID's from table A so wen i do a query with this 3 tables i get some Null Fields. What i would like to do is insert in those NULL fields the 0 character.

Do you think this is possible?

Tanks in advance for all the help.
Dec 14 '07 #1
3 10813
missinglinq
3,532 Expert 2GB
I think what you want is Nz(YourFieldName, 0).

Welcome to TheScripts!

Linq ;0)>
Dec 14 '07 #2
IRON77
3
I think what you want is Nz(YourFieldName, 0).

Welcome to TheScripts!

Linq ;0)>
And were will i insert this expression?
Dec 14 '07 #3
IRON77
3
And were will i insert this expression?
I figured it out. Tanks Linq.

Now i have another problem. I want to Sum the values from Table B and Table C and instead of summing the result access is joining the values from Table B and Table C ( Ex. Table B: 10; Table C: 5 - Result expected: 15 - Result experienced: 105 )

I tried to Format the field to Numeric but in properties format there is no option available. Please help.

Once again thank in advance for the answers you may have to resolve this issue.

Sorry for my bad English.
Dec 14 '07 #4

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

Similar topics

2
by: Alex | last post by:
Hi folks, I'm doing calculations based on data in a table, but the data has some zeros in the field I'm dividing by. I'm trying to write a script to replace any field with 0 or null with 1, but...
2
by: Ryan | last post by:
I'm looking for a stored procedure (or query) to search an entire database for a specific string value and replace it with another. I'm sure I saw an SP for this a while back by someone, but cannot...
12
by: Brian | last post by:
I want to use regxp to check that a form input contains at least 1 non-space charcter. I'd like to only run this if the browser supports it. For DOM stuff, I'd use if (documentGetElementById) {}...
2
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
1
by: dig314 | last post by:
MSAccess linking to Oracle 8 tables with Microsoft ODBC for Oracle driver I need to change the email address of all users because our domain has changed. Is there a way to do this with SQL and...
16
by: Rico | last post by:
I'm moving some queries out of an Access front end and creating views out of them in SQL Server 2005 express. In some of the numeric fields, I use nz quite often, ( i.e. nz(,0)) to return a zero...
4
by: laurenquantrell | last post by:
I have a query below that performs horribly: @KeywordOne char(6), @KeywordTwo char(6), @KeywordThree char(6), @KeywordFour char(6), @KeywordFive char(6) SELECT
2
by: john | last post by:
In a table I have text field A. I would like to replace all the null values in field A to a real value, let's say 'Test'. When I use Find & Replace and I search for 'is null' and I press replace or...
6
by: JackpipE | last post by:
Here is my replace query and I need to run this on every column in my table. Right now I manually enter the column name (_LANGUAGES_SPOKEN) but this is time consuming and would like to automate...
1
benchpolo
by: benchpolo | last post by:
SQL Query SELECT mh.hpcode , ISNULL(CONVERT(varchar,mh.opfromdt,112),'') as opfromdt , ISNULL(CONVERT(varchar,mh.opthrudt,112),'') as opthrudt , mc.patid , mc.membid , mc.lastnm ,...
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
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,...
0
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
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,...
0
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
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...

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.