|
| |
|
|
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
|
|
|
|
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
|
|
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
|
|
|