J
Junior
in Beforeupdate in a bound cbobox
I want to test if the bound table already contains a value -
if doesn't contains a value, i want to allow the update
If the table already contains a value <> the update , i want to cancel the
update
and take other action
Please help with the VBA to find the correct record using DLookup
AppID and txtAppID are both numerical
Dim strOldPos As String
strOPos = DLookup("AppPosition", "TblApp") Where TblApp.AppId =
"Me.txtAppID"
I want to test if the bound table already contains a value -
if doesn't contains a value, i want to allow the update
If the table already contains a value <> the update , i want to cancel the
update
and take other action
Please help with the VBA to find the correct record using DLookup
AppID and txtAppID are both numerical
Dim strOldPos As String
strOPos = DLookup("AppPosition", "TblApp") Where TblApp.AppId =
"Me.txtAppID"