Results 1 to 2 of 2
  1. #1
    miziri is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    80

    Msg box problem

    Hi
    I have this below code
    Dim bal, outp As Double
    bal = CDbl(Me.cmbPro.Column(2))
    outp = CDbl(Me.txtOutpot)
    If bal < outp Then
    MsgBox "Year Balance exceeded", vbOKOnly


    End If

    I have one note about warning MSGBOX
    if I have monthly balance 100$ and I want to take output 101$ for sure it will give warning MSGBOX "Year Balance exceeded"
    then I will correct from 101 into let say 80$ when i click on enter still that warning massage BOX appear
    why that happen now that new value which 80$ is less.

    Thanks

  2. #2
    Join Date
    May 2010
    Posts
    339
    You need a Me.Requery in your controls after update event. I am guessing

    Me.txtOutpot


    Richard

Please reply to this thread with any new information or opinions.

Similar Threads

  1. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums