Search results

  1. yhchen

    Validation Rule Help: Option Group VS Text box

    Thank you SOS. You're my hero!
  2. yhchen

    Validation Rule Help: Option Group VS Text box

    Thank you SOS I followed your instruction... and yes the new record can now be added but it does not set ID field to be required when Xource=1... would you be able to upload the file you successfully amended?
  3. yhchen

    Validation Rule Help: Option Group VS Text box

    thank you, sos very much appreciated!!
  4. yhchen

    Validation Rule Help: Option Group VS Text box

    the file is too big to upload to here.... I uploaded to my skydrive... http://cid-5edd539792b3921e.skydrive.live.com/self.aspx/Public/db1.mdb
  5. yhchen

    Validation Rule Help: Option Group VS Text box

    When the code is removed and the new record is added, in the table vew it did return a 1 when the code is added back... it pops up the same message again (would not appear the error message at all)
  6. yhchen

    Validation Rule Help: Option Group VS Text box

    2nd try!! Thank you SOS
  7. yhchen

    Validation Rule Help: Option Group VS Text box

    Hello herewith the screen capture... I am sure this will clear things out a little bit... Thank you SOS...
  8. yhchen

    Validation Rule Help: Option Group VS Text box

    Thank you SOS..I have done so but still not working... :( It seems that this code is stopping the "SandN" bottom from working. If I removed the IF code, then the bottom works fine. Once I put the IF code back, it pops up with the same warning message.... the Error"" line was an .... errrr...
  9. yhchen

    Validation Rule Help: Option Group VS Text box

    Hello.... I encountered some problem.... The form has the following code: Private Sub Form_BeforeUpdate() If Me.Source = 1 And Len(Me.StudentID & "") = Null Then Cancel = True MsgBox "You need to fill in the Student ID", vbExclamation, "Entry" Error "" End If End Sub Private Sub...
  10. yhchen

    Validation Rule Help: Option Group VS Text box

    Thank you SOS (and missinglinq) You guys are the best!!
  11. yhchen

    Validation Rule Help: Option Group VS Text box

    I have a form that I use to track the imcoming phone calls I would like to set the field of a textbox "Student ID" as a required field when the value of option group is 1 (when the value of option group is 2 then "Student ID" is not a required field) I am struggling how to write the...
  12. yhchen

    why does this code work in one form but not the others?

    Thank you very much...you made my day!! I really appreciate your help!
  13. yhchen

    why does this code work in one form but not the others?

    worked!!!! Thanks a lot!!
  14. yhchen

    why does this code work in one form but not the others?

    WhenUpdated is the name of the field... any idea?? :(
  15. yhchen

    why does this code work in one form but not the others?

    only just realised it didn't work for both forms!!! It should stamp the date if it is not a new record....:(
  16. yhchen

    why does this code work in one form but not the others?

    why doesn't this code work? I have been trying to figure this out for whole day but not very successfully... so I am hoping someone here will be able to spot the error... I googled this datestamp method: It worked once (somehow) and then just doesn't work anymore.... any idea?
  17. yhchen

    Date Stamp

    Thanks Steve....it's still not working though... :( no debug message nor error message, just nothing happened.... You mentioned earlier that the [Update] should be a Boolean field and that it is linked to [lastupdate] and I am not quite sure about what you meant about that... as you can see...
  18. yhchen

    Date Stamp

    Thank you Steve, but it doesn't work... Attached the design view screenshot: I put down: Private Sub Update_After() oldlastupdate = LastUpdate IIF(Update,date(),oldlastupdate) End SubNothing happened..... only that in the code view, the line of IIF appears as red... any idea?? another...
  19. yhchen

    Date Stamp

    Hello.... Hope someone here knows about the answer about this: When user attempted to update a record in the form, I would like the field "lastupdate" to be datestamped if the field Confirm Update (yes/no) is ticked... I tried to use IIf([Update],Date(),"") but it's not working... Hopefully...
  20. yhchen

    When open a form go to the new record

    Hi thanks a lot The below code works... Private Sub Form_Open(Cancel As Integer) DoCmd.GoToRecord , , acNewRec End Sub
Back
Top Bottom