monkeymagic2222
Technical User
Hi,
I have created a number of ASP pages on our intranet that write to several Access 97 databases. When adding new records to a database through the ASP pages sometimes we don't have data to put in certain fields so need to leave them blank. The problem is unless there is a value in these fields, the ASP page fails trying to write the data. I think this only happens on numeric fields. I have checked the database and made sure I haven't forced any of the fields to "Only Accept Values" which I haven't.
On one of the pages I added some If statements to the ASP to say if the field was blank then automatically insert a "0" but I wondered if there was a better way around this?
Thanks
I have created a number of ASP pages on our intranet that write to several Access 97 databases. When adding new records to a database through the ASP pages sometimes we don't have data to put in certain fields so need to leave them blank. The problem is unless there is a value in these fields, the ASP page fails trying to write the data. I think this only happens on numeric fields. I have checked the database and made sure I haven't forced any of the fields to "Only Accept Values" which I haven't.
On one of the pages I added some If statements to the ASP to say if the field was blank then automatically insert a "0" but I wondered if there was a better way around this?
Thanks