i want the user to have to change the location of an item if its location is at the wherehouse how do i pause it till the user presses "ok" on the popup form?
Code:
Private Sub Command6_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("Main Inventory", dbOpenDynaset)
If Me.SAI_Serial_Number.Value = "" Or IsNull(Me.SAI_Serial_Number.Value) Then
MsgBox "You Must enter a Serial Number in order to Ship!"
Else
With rs
.FindFirst "[Sai Serial Number] = '" & Me.SAI_Serial_Number.Value & "'"
If .Fields("Location") = "SAI, Shelton" Then
DoCmd.OpenForm "Change Location"
'Need to Pause untill the user has changed the location
.Update
End With
DoCmd.GoToRecord
Me.SAI_Serial_Number.SetFocus
End If
End Sub