Recent content by valeriej42

  1. V

    dlookup in a form not working

    I have a form that uses a dlookup to populate a text box from a combo box. It worked but recently it has stopped. I am working on the entire database so I created a copy to work on. Not only has the dlookup stopped working in my copy but in the original as well. I didn't change anything that...
  2. V

    No duplicate value based on another value

    I appreciate all your help. At this point I'm ready to go in a different direction. I'll let you know if I need anymore help. Thanks to all who tried to help.
  3. V

    No duplicate value based on another value

    OK That worked. So I guess there's no hope for my form.
  4. V

    No duplicate value based on another value

    It let me input the data once with no errors. But I can't try a duplicate.
  5. V

    No duplicate value based on another value

    OK So it's not working because the training number is an autonumber and I'm not able to input the number I need.
  6. V

    No duplicate value based on another value

    It has been a long day and I'm sure it must be late for you. I'll try this and see how it goes. Thanks.
  7. V

    No duplicate value based on another value

    Sorry but I didn't get the attached db. I am using mmddyyyy. I wouldn't be surprised if this form is corrupted. It is an old database that has been used hard.
  8. V

    No duplicate value based on another value

    As soon as I insert this code it turns red.
  9. V

    No duplicate value based on another value

    I have an input mask set for short date.
  10. V

    No duplicate value based on another value

    Same thing except change training_number to employee_id Runtime error 3075 syntax error (missing operator) in query expression '[Employee_ID]= AND [Date_Completed]=##'
  11. V

    No duplicate value based on another value

    Runtime error 3075 syntax error (missing operator) in query expression '[Training_Number]= AND [Date_Completed]=##' And this is happening when I try to exit the form using the quit button. And it still lets me put in duplicates.
  12. V

    No duplicate value based on another value

    Private Sub Form_BeforeUpdate(Cancel As Integer) If DCount("*", "TBL_EmpTrainDate", "[Employee_ID]='" & Me.Employee_ID & "' And [Training_Number] = " & Me.Training_Number & " AND [Date_Completed]=#" & Me.Date_Completed & "#") > 0 Then MsgBox ("A Record for this Employee, Training Class and...
  13. V

    No duplicate value based on another value

    It is definitely in the Before Update.
  14. V

    No duplicate value based on another value

    The values are exactly what I entered. Employee ID is ssn, Training Number is 5 and date is 3/1/2013
  15. V

    No duplicate value based on another value

    I'm sorry. No offense but you just spoke Greek (or is that Geek) haha. I'm not a programmer in any sense of the word. My expertise is in hardware. So I guess I'll need more instruction.
Back
Top Bottom