Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 TableEditor/Access problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

es4725
Junior Member

205 Posts

Posted - 25 April 2002 :  19:57:41  Show Profile
I'm using an access DB, and Using TableEditor to edit it online. I have some fields in the DB that need to hold a value of 0 (zero). When I try to enter this value through TE and click "Save" I get an error. It says "Record Saved" at the top, but the error says:
"Invalid use of Null: 'cstr' te_showrecord.asp line 288"
If you view the record after that, the point where a zero is entered is not shown (nor anything afterwards), and you get the same error. I don't understand why I'm getting the errors. The field is a number field. Any help?

Doug G
Support Moderator

USA
6493 Posts

Posted - 25 April 2002 :  20:19:48  Show Profile
Perhaps there is some other field that can't be null but you're not editing anything in it. Maybe table editor is changing a zero length string to a null when it rewrites.


======
Doug G
======
Go to Top of Page

es4725
Junior Member

205 Posts

Posted - 26 April 2002 :  10:03:59  Show Profile
All fields contain data. All other Number fields are integers greater than 0, or the number "-1". I get no problems with any records that contain both of those, without zeros. However, if I have a record that contains one zero, I get that error. It prints all the other fields into the DB, but it prints nothing into the field where I put the zero. You can see the results of that here:
http://www.ohio.k12.ky.us/ochs/gbasketball/rosters/player.asp?id=3
There are three places that don't have a value. 3pts made, 3pt percentage, and blocked shots. I had a zero in 3 pts. made, and it's percentage is figured from that field and the attempted field. I also had a zero in the blocked shots field. Does that clear anything up?

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 26 April 2002 :  12:21:46  Show Profile
I have never had a problem like this with table editor. Maybe your table editor code pages got corrupted? You could try reinstalling te, or install a 2nd copy of it and see if you get the same problem.

There is a piece of data that table editor expected to be present but it's not, and when the value is being converted to a string it gives you the error message.


======
Doug G
======
Go to Top of Page

es4725
Junior Member

205 Posts

Posted - 26 April 2002 :  17:01:45  Show Profile
ok, I'll play with it... thanks.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07