Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zero-Length String MSACCESS and ASP

Status
Not open for further replies.

fpc

IS-IT--Management
Dec 22, 2000
13
US
I get the error &quot;Cannot be a zero-length string&quot; when someone removes data from an asp form or leaves a field blank. The Data comes from a MSACCESS Database, the fields are not required to have data. the error occurs when I try to write data back to the record for updating.. Can someone clue me in on how to eliminate this checking? My form field value looks like this : <%response.write rsemp(&quot;FirstName&quot;)%> Any help is appreciated..Fields in Access accept NULL..
 
Go to the access data base go the the table and choose to design it

select the field that you want to set to allow null
now at the bottom of the page the second last option is
allow zero length make that yes
that should solve your problem

but is is better method to validate the form

Regards Unicorn11
abhishek@tripmedia.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top