473,473 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Bug in Access?

I have some text fields in several linked SQL Server 2000 tables that
intermittantly have either a zero length string placed in the field or
a null value. My desire is to have null values when there isn't any
data entered into the field from an Access 2003 form (Access 2000 file
format is what we are using however.) I checked the link itself and
it has "AllowZeroLength" by default set to Yes and "Required" by
default set to No (I have not modified any properties of the link.)
According to MS documentation, this is what I want (even though the
user could still type "" to force an empty string.) I know without a
shadow of a doubt the user doesn't know how to do this and for
simplicity I leave the link untouched with the default settings. The
fields themselves are all varchar data types, with "Allow Nulls"
checked in the table designer of the Enterprise Manager, and default
values not present.

Two things in my mind could be the reason, I either only "think" the
user doesn't know how to enter "" to get an empty string or its
bugged. Could anyone please shed some light on this for me? I am
totally baffled.

Jan 30 '07 #1
2 1527
On 30 Jan 2007 09:09:41 -0800, "n00b" <ad****@email.comwrote:

You rarely ever would want to allow both null and ZLS in the same
field, especially if they kind-of mean the same thing. In SQL Server
it's easy to put a Check Constraint to avoid the problem.

The Access link information doesn't mean much to me; I would
exclusively look at what the SQL Server table allows.

How you got ZLS in your field is anyone's guess, not knowing your app.
One possibility is that the user enters <space>, which Access in its
infinite wisdom may truncate to a ZLS.

-Tom.
>I have some text fields in several linked SQL Server 2000 tables that
intermittantly have either a zero length string placed in the field or
a null value. My desire is to have null values when there isn't any
data entered into the field from an Access 2003 form (Access 2000 file
format is what we are using however.) I checked the link itself and
it has "AllowZeroLength" by default set to Yes and "Required" by
default set to No (I have not modified any properties of the link.)
According to MS documentation, this is what I want (even though the
user could still type "" to force an empty string.) I know without a
shadow of a doubt the user doesn't know how to do this and for
simplicity I leave the link untouched with the default settings. The
fields themselves are all varchar data types, with "Allow Nulls"
checked in the table designer of the Enterprise Manager, and default
values not present.

Two things in my mind could be the reason, I either only "think" the
user doesn't know how to enter "" to get an empty string or its
bugged. Could anyone please shed some light on this for me? I am
totally baffled.
Jan 31 '07 #2
>How you got ZLS in your field is anyone's guess, not knowing your app.
>One possibility is that the user enters <space>, which Access in its
infinite wisdom may truncate to a ZLS.
I suspected that too, recalling how often users will "empty" a cell in
Excel by hitting the spacebar and then wonder why it doesn't act like
an empty cell. However, Access itself doesn't convert ' ' to ''. I
opened a SQL server linked table in spreadsheet view, typed a space
and saved the record, and the column was <NULLwhen I checked it on
the SQL server. It is possible that some bound controls may behave
differently, I suppose....
On Jan 30, 11:26 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On 30 Jan 2007 09:09:41 -0800, "n00b" <adv...@email.comwrote:

You rarely ever would want to allow both null and ZLS in the same
field, especially if they kind-of mean the same thing. In SQL Server
it's easy to put a Check Constraint to avoid the problem.

The Access link information doesn't mean much to me; I would
exclusively look at what the SQL Server table allows.

How you got ZLS in your field is anyone's guess, not knowing your app.
One possibility is that the user enters <space>, which Access in its
infinite wisdom may truncate to a ZLS.

-Tom.
I have some text fields in several linked SQL Server 2000 tables that
intermittantly have either a zero length string placed in the field or
a null value. My desire is to have null values when there isn't any
data entered into the field from an Access 2003 form (Access 2000 file
format is what we are using however.) I checked the link itself and
it has "AllowZeroLength" by default set to Yes and "Required" by
default set to No (I have not modified any properties of the link.)
According to MS documentation, this is what I want (even though the
user could still type "" to force an empty string.) I know without a
shadow of a doubt the user doesn't know how to do this and for
simplicity I leave the link untouched with the default settings. The
fields themselves are all varchar data types, with "Allow Nulls"
checked in the table designer of the Enterprise Manager, and default
values not present.
Two things in my mind could be the reason, I either only "think" the
user doesn't know how to enter "" to get an empty string or its
bugged. Could anyone please shed some light on this for me? I am
totally baffled.

Jan 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
1
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ......
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.