This is a discussion on "Null and """ within the Databases section. This forum, and the thread "Null and "" are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Null and ""
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Null and ""
Hi:
I have a question In VB Code: case 1: I set one variable to be Null value1 = Null OR case 2: I set one variable to be "" value1 = "" What is the difference? Is the "" still count one character??? "" => 1 character Null is meaning nothing, empty, right. If (isnull(value1)) then ... end if From above code, case1 will be worked, right. Please let me know, thanks. Thanks. |
|
|
|
#2
|
|||
|
|||
|
You are quite right. Databases draw a distinction between NULL which means no value, and an empty string which is an empty string.
In Access you have to AllowZeroLength strings on text fields. Similarly in VB/VBA variant variables can hold a NULL value. |
![]() |
| Tags |
| null, quotquot |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a "tag" system to find relevant "related" pages | MrQuestions | PHP Forum | 3 | Mar 20th, 2008 23:06 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| ? IS "meta name="robots" content="?" necessary in pages ? | Love2Java | Starting Out | 6 | Aug 8th, 2007 13:48 |
| window.opener.document["nameForm"].getElementById("someid").value; doesnt work | drpompeii | JavaScript Forum | 0 | Feb 17th, 2007 23:09 |
| Need to build a "Trip" or "Journey Planner" | jswebdev | PHP Forum | 4 | Dec 5th, 2005 23:22 |