Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / January 2007

Tip: Looking for answers? Try searching our database.

Bug in Access?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
n00b - 30 Jan 2007 17:09 GMT
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.
Tom van Stiphout - 31 Jan 2007 04:26 GMT
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
[quoted text clipped - 15 lines]
>bugged.  Could anyone please shed some light on this for me?  I am
>totally baffled.
Gord - 31 Jan 2007 12:48 GMT
>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 <NULL> when I checked it on
the SQL server. It is possible that some bound controls may behave
differently, I suppose....

> 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
[quoted text clipped - 28 lines]
> >bugged.  Could anyone please shed some light on this for me?  I am
> >totally baffled.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.