Article View: comp.databases.ms-access
Article #214Select Case on a text-field
From: Ini
Date: Mon, 24 Nov 2003 14:07
Date: Mon, 24 Nov 2003 14:07
39 lines
2206 bytes
2206 bytes
Hi, I have a recordset containing names of photographs and descriptions of these photo's. For exempla: Photo: car01.jpg Description: Red Corvette Not all the photographs have a description. In that case the Description is empty. The field Description is aText-field. Using VBA I build a website containing the photos. Depending on having a description I want a certain presentastion of the photo. So I built the following: Selecet Case Description Case Null Print #1, presentation1 Case Else Print #1, presentation2 End Select This Case-statement doesn't work because it doesn't recognize when the field Description is empty. My question is how to write the Case-statement so it will recognize when an text-field in a record is empty. Must I do something with the properties of the textfield? Has it possibly something to do with the fact I use a Dutch version of Access97 and an English version of XP? Thanks.
Technical Details
Message-ID:
<bpt3bt$m8b$1@news1.tilbu1.nb.home.nl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!uninett.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b1d,d0a74dd2efedac51,start X-Google-Attributes: gid102b1d,public X-Google-Thread: ff0ac,d0a74dd2efedac51,start X-Google-Attributes: gidff0ac,public X-Google-Thread: 11387c,d0a74dd2efedac51,start X-Google-Attributes: gid11387c,public X-Google-ArrivalTime: 2003-11-24 06:07:59 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!uninett.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mail From: "Ini" <ini@ini.myweb.nl> Newsgroups: comp.databases.ms-access,de.comp.datenbanken.ms-access,dk.edb.database.ms-access Subject: Select Case on a text-field Date: Mon, 24 Nov 2003 15:07:45 +0100 Organization: @Home Benelux Lines: 41 Message-ID: <bpt3bt$m8b$1@news1.tilbu1.nb.home.nl> NNTP-Posting-Host: cc91542-a.hnglo1.ov.home.nl X-Trace: news1.tilbu1.nb.home.nl 1069682877 22795 212.120.101.44 (24 Nov 2003 14:07:57 GMT) X-Complaints-To: abuse@home.nl NNTP-Posting-Date: Mon, 24 Nov 2003 14:07:57 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165