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:
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.