Hi Have this code
Private Sub Command2_Click()
If Me.Text0.Value = DLookup("TableNumber", "RunningTables", _
"[TableNumberID]=" & Me.Text01.Value) Then
Me.Text1.Value = "yes"
Else
Me.Text1.Value = "no"
End If
End Sub
But I keep getting Runtime error 2001 you cancelled the previous operation. Can anyone let me know where I am going wrong
Thanks
Private Sub Command2_Click()
If Me.Text0.Value = DLookup("TableNumber", "RunningTables", _
"[TableNumberID]=" & Me.Text01.Value) Then
Me.Text1.Value = "yes"
Else
Me.Text1.Value = "no"
End If
End Sub
But I keep getting Runtime error 2001 you cancelled the previous operation. Can anyone let me know where I am going wrong
Thanks