dear respected Gurus,
i would like to know what is wrong with my codes, i wanted to put
PolicyNo(say any string value, which is PK in table)...how to do? as i
make one inputbox it asked the value, but says "you cancelled the
previous opertion"
Private Sub btnAdd_Click()
Dim msgTitle As String
Dim strInput As String
Dim lblInput As String
Dim varChk As Boolean
msgTitle = "New Policy No."
lblInput = "Enter new Policy No."
strInput = InputBox(lblInput, msgTitle)
varChk = DLookup(strInput, "[BURGLARY2000]", "[POLICYNO]=" & strInput)
If varChk = True Then
MsgBox "Policy Issued"
Else
MsgBox "Policy not Issued"
End If
regards,
your studnet
Shahzad
End Sub