G
Guest
I have created a List box in the form View but how do I make it Prompt the
user to Populated the field ?
user to Populated the field ?
I have created a List box in the form View but how do I make it Prompt the
user to Populated the field ?
John, Thank you for your help. Please can you show me an example of an Event
t* to generate a prompt.
John,
Thank you for reply to my question. I would like the Prompt to be when they
try to leave the from
John Thank you for replying to me but please could you explain what you mean
by somecontrolname ?
John,
Thank you, I have tried the Code but I must be doing something wrong. When
I go to the Form Propeties and go to on close this is what comes up Private
Sub Form_Close() and I enter your code but nothing happens. The Forms Name is
Asset1 and the text box in the form that I am trying to prompt user to
populate is Internal Reference. I have a command box to exit the form called
Command8. Please could you advise where I am going wrong.
John,
Sorry but Here is the code. The internal reference is the List box that I am
trying to prompt the user to complete which is in the Form Asset1. I also
have a command button that I have on the form to exit the form called
Command8. Hope you can help.
Private Sub Form_Close()
Dim iAns As Integer
If IsNull(Me!Internal_Reference) Then
Cancel = True ' cancel the update of the record
iAns = MsgBox("Internal_Reference is blank! Fill it or click Cancel to
erase:", _
vbOKCancel)
If iAns = vbOK Then
Me!Internal_Reference.SetFocus ' go to the required control
Else
Me.Undo ' erase the entire form so they can start over
End If
End If
End Sub
John,
Sorry but tried the code in before update and the following error comes up.
Run-time error 2465
Microsoft Access can't find the field Internal_Reference referred to in your
expression.
Many Thanks
Arlene