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

null or not an object

Status
Not open for further replies.

jliz2803

IS-IT--Management
Mar 21, 2005
45
CA
When I try to add a record to my data base I get this error.

'Form.GMAC_CancellationName.value' is null or not an object

I don't know what the problem is and it shouldn't matter if it is null b/c there is a default value for this field in the database and it isn't even required. Can someone please help me?
 
You are using javascript to attempt to write to a database... and you are attempting to access a client-side form object. You just can't do that.

If you are doing this server-side, you can't access the page DOM form elements. If you are doing this server-side then you can't access a database.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
I was able to do everything just fine until I added two new fields to the database and now it had trouble with only one of the fields there is also some VBScript involved with my coding. Any thoughts?
 
It sounds like you have a server-side problem, and usually Javascript is used client-side. If you're using VBScript for your server-side language, then the problem is probably that.

Without showing your code, though, you're asking for us to figure out telepathically what's going on.

Lee
 
I appreciate your response, I could post my code on here but there is about 1500 lines of it, so it be a bit much, if you care to look at it let me know and I will gladly post it. THanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top