Results 1 to 5 of 5

Thread: [RESOLVED]Error when updating database

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    367

    Resolved [RESOLVED]Error when updating database

    I'm using ADO commands, VB 6.0, and MS Office 2000

    Below is the code I am using to update my database. I'm testing a single field first so it's just one line of code.

    VB Code:
    1. With Form2.rs
    2.     .AddNew
    3.         .Fields("fldEmpGender") = cmbGender.Text
    4.     .Update
    5. End With

    When I do this I get the an error saying...

    Run-time error '-bunch of numbers':

    The field 'tblEmployee.fldEmpPassword' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field.
    I don't get this error. My test database only has 3 employees in it and they all have passwords already entered in the fldEmpPassword table/database.

    After I hit 'OK' it highlights the .Update line in yellow.
    Last edited by lilmark; Apr 20th, 2006 at 04:45 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width