Fuction NZ

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good afternoon.

I am using the function NZ to convert numeric fields without value to have a
value zero in a query.
This query is resulting to combine two tables.
I have a problem.
After applying the function NZ to the fields, the fields lose their format
(standard format) and I do not find the way of recovering the format again.

Fernando Rios
 
What is "their format"? Formats should be applied to values in controls on
forms or reports. Are you expecting something different?

You might need to wrap Nz() inside Val() like Val(Nz([YourField],0)).
 
Hi,

"if" you still have the query designer in "design" mode available, then
right click on the column defining the new computed expression, and in the
properties, you should see the "format" property that you can specify. Like
Duane mentioned, it is preferable to specify the format at the control level
"where" you use the data.

Hoping it may help,
Vanderghast, Access MVP

Duane Hookom said:
What is "their format"? Formats should be applied to values in controls on
forms or reports. Are you expecting something different?

You might need to wrap Nz() inside Val() like Val(Nz([YourField],0)).

--
Duane Hookom
MS Access MVP
--

Fernando Ríos said:
Good afternoon.

I am using the function NZ to convert numeric fields without value to
have a
value zero in a query.
This query is resulting to combine two tables.
I have a problem.
After applying the function NZ to the fields, the fields lose their
format
(standard format) and I do not find the way of recovering the format
again.

Fernando Rios
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

NZ function 1
NZ function 1
Query Criteria Not Working 2
Nz function 0
Access #Error & Excel Pivot 0
Nz function 6
QRY FORMULA ISSUE 4
Can I use an IIF statement with the NZ function? 2

Back
Top