navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Update DB with blank field

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Update DB with blank field
Page: [1]
 
SerenityNet

 

Posts: 1372
Joined: 6/12/2001
From: Allen, TX, USA
Status: offline

 
Update DB with blank field - 1/21/2002 19:13:06   
Hi,

I have a working update DB page. However, when I try to update the DB, when one or more of the fields have been replaced with a blank, then I receive the error I've pasted below (underlined). I don't see how I can use a default, since I'm already defaulting the field with a <%=request ("telephone")%> function. I can fool the update by telling the site visitor to put a space in the field, but I'm hoping there is something cleaner. Any ideas?

Thanks in advance,
Andrew

Database Results Error
Description: [Microsoft][ODBC Microsoft Access Driver] Field 'data.telephone' cannot be a zero-length string.
Number: -2147467259 (0x80004005)
Source: Microsoft OLE DB Provider for ODBC Drivers

One or more form fields were empty. You should provide default values for all form fields that are used in the query.


Andrew
webmaster@serenitynet.net
- - - - - - - - - - - -
"But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness, and self-control..." Gal. 5:22
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Update DB with blank field - 1/21/2002 20:17:12   
In the design of the database, ensure that the column/s allow zero length as an input

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to SerenityNet)
SerenityNet

 

Posts: 1372
Joined: 6/12/2001
From: Allen, TX, USA
Status: offline

 
RE: Update DB with blank field - 1/21/2002 20:55:53   
Duh!

Thanks again,
Andrew

Andrew
webmaster@serenitynet.net
- - - - - - - - - - - -
"But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness, and self-control..." Gal. 5:22

(in reply to SerenityNet)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Update DB with blank field
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts