My Assistant
![]() ![]() |
|
|
Apr 12 2009, 04:13 PM
Post
#1
|
|
|
UtterAccess Guru Posts: 860 |
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.text0) Then MsgBox "complete data" Cancel = True End If End Sub why the msgbox above appear to me twice? I click the message box 2 time until disappear what is the reason thanks |
|
|
|
Apr 12 2009, 04:45 PM
Post
#2
|
|
|
UtterAccess Ruler Posts: 2,659 |
No idea, based on your posted code, unless the control is corrupted. It runs as expected when I recreate your scenario in v2003. You might delete the textbox and BeforeUpdate event and recreate them.
|
|
|
|
Apr 12 2009, 07:09 PM
Post
#3
|
|
|
Utterly Banned Posts: 3,905 From: Brisbane, Australia |
G’day Aam.
Do you mean you get one message box when you try to move to a new record and another message box when you try to close the Form? Regards, Chris. |
|
|
|
Apr 12 2009, 11:24 PM
Post
#4
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
Is there any other VBA code on the form?
|
|
|
|
Apr 13 2009, 12:41 AM
Post
#5
|
|
|
UtterAccess Guru Posts: 860 |
missinglinq
ChrisO HiTechCoach Thanks all HiTechCoach Is there any other VBA code on the form? I find the trick you give the idea i duplicate the code here is the duplication DoCmd.RunCommand acCmdSaveRecord DoCmd.GoToRecord , , acNewRec the message appear twice for the above reason (IMG:http://www.utteraccess.com/forum/style_emoticons/default/thumbup.gif) (IMG:http://www.utteraccess.com/forum/style_emoticons/default/thumbup.gif) (IMG:http://www.utteraccess.com/forum/style_emoticons/default/thumbup.gif) |
|
|
|
Apr 13 2009, 02:11 AM
Post
#6
|
|
|
UtterAccess Guru Posts: 860 |
if find answer for duplicating message by help HiTechCoach but Now
if i have the above code and this message appear to me when closing the form how can i prevent this message from appear? i'm using this code to close the form command_1_click docmd.close end sub |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 11:53 AM |