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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Values in DB Results Wizard 1

Status
Not open for further replies.

jezmondo

IS-IT--Management
Aug 24, 2001
23
GB
Is it possible to omit default values from the Database Results Wizard when creating an Update.asp page? The requirement to add default values in all fields is messing up another query in the db. This is particular true regarding date fields.
 
I'm using DRW in FP2000. If I don't provide defaults values I get the following error
------------------------------------------
Database Results Error
Description: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
Number: -2147217913 (0x80040E07)
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.
---------------------------------------------
This really does seem to seriously restrict the functionality of asp with Frontpage
 
One thing you can do is open the Access Database and be sure that you set any fields you want to "Allow zero length" to Yes. By default it is usually set at no.

You also mentioned a problem with the date field. There is a known issue with the DRW and date fields. It is suggested that you could change your "date" field to a text box to work around the issue - or another solution is:

HTH
Tiffany



Microsoft MVP - FrontPage
 
Hi Tiffany

Thanks for your help. However I'm still needing to provide default values for all fields within the update. Even though the fields in my db are set to zero length and not required, Frontpage still insists on having a default!

I'll probably get round this by doing some whizzy stuff on the db side of things. Seems a real shame that Frontpage can't handle empty fields for updates though.

If you've got any other ideas they're more than welcome.

Thanks again

Jeremy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top