Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > SQL Language
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old July 7th, 2003, 09:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Hudson, MA, USA.
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
Reply With Quote
  #12 (permalink)  
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!!!!
Reply With Quote
  #13 (permalink)  
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:27 AM.


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