Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2003, 09:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

You might try looking in Access Help for the 'nz' function (but I can never find anything in Access help...)

In any case, the 'nz' function returns the value of its first parameter if that first parameter is not null; if the first parameter is null, then it returns the value of the second parameter.

It is similar to the COALESCE function in SQL (which Access doesn't support), but COALESCE is a bit more powerful. COALESCE returns the first non null value in its argument list, and it can have many arguments, whereas 'nz' is limited to only two values.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
 
Old November 28th, 2013, 05:42 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help

Hi. It's my first post and my english isn't good (I'm from Italy). So, I have a problem with ole object. My database is sql and for my query I use a odbc access in msaccess. In the database in a field there is a string (comment) that is registred as an image. If I use a sql query with the cast function the ole is transformed in a string. In msacces I'm trying the function posted. The Nz function produces a field with japanese/chinese characters. I don't understand how configure the parameter. Please, help me!!!!
 
Old November 28th, 2013, 05:56 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help

This works and the result is a string:
select cast(CAST(ZusInfo as varbinary) as varchar), * from CdnFzgVerkauf

How can I have the same result in vba?

Thank you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Excel to Access MrQwest Access 3 February 5th, 2007 08:59 AM
Convert access reports to pdf Sara Access VBA 3 December 29th, 2004 05:51 PM
Different between CAST and CONVERT functions jdang67 SQL Server 2000 2 October 24th, 2004 12:00 PM
Convert from xml to Access database lxu XSLT 0 June 3rd, 2004 01:24 PM
Query String Cast or Convert function hoffmann Access 6 February 25th, 2004 01:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.