Pop up prompt to enter data

Sturmtruppe

Registered User.
Local time
Today, 13:38
Joined
Mar 26, 2009
Messages
18
I've got a yes/no field called 'SchoolPickup' whereby the user enters 'yes' or 'no' depending on whether a customer has decided to pick their items up from school or not.

The problem is, I would rather a pop up prompt asking yes or no was displayed once id entered the name of the school in the 'SchoolName' field. However, im not even sure if this is possible?
 
A couple of way to do this. One would be with a Messagebox. Not 100% sure of exactly what you want here but this should get you started.
Code:
Private Sub SchoolName_AfterUpdate()
If Nz(Me.SchoolName, "") <> "" Then
 
 If MsgBox("Would you like to pickup from the school?", vbYesNo) = vbYes Then
  Me.SchoolPickup = "Yes"
 Else
  Me.SchoolPickup = "No"
 End If
  
End If
End Sub
Linq ;0)>
 
Great, thanks thats exactly what I needed.

A prompt will help my users remember to note this on their fax orders.
 

Users who are viewing this thread

Back
Top Bottom