On Wed, 11 Jan 2006 23:17:50 GMT, "Randy Harris" <ra***@SpamFree .com>
wrote:
What are you doing with the DLookup returned value?
Nothing really. Just trying to see if its already in the table to
prevent the user from inadvertently reprocessing the same VIN.
Here's the snippet. The first three 300's that are rem'd out all
failed in a similar fashion running the DLookUp.
'300: If DLookup("[PVIN]", "tblPreliminary VINs",
"[PVIN]=CStr(Forms!frm VINODOtesting!S erialNum)") Then 'Somehow,
JT4RN81A0M00777 77 causes a type mismatch in this line
'300: If DLookup("[PVIN]", "tblPreliminary VINs",
"[PVIN]=Forms!frmVINOD Otesting!Serial Num") Then 'Somehow,
JT4RN81A0M00777 77 causes a type mismatch in this line
'300: If DLookup("[PVIN]", "tblPreliminary VINs",
"[PVIN]='JT4RN81A0M007 7777'") Then 'Somehow, JT4RN81A0M00777 77
causes a type mismatch in this line
300: If DLookup("[PVIN]", "tblPreliminary VINs", "[PVIN]=""" &
Forms!frmVINODO testing!SerialN um & """") Then 'Randy Harris
suggestion off NG.
310: DoCmd.CancelEve nt
320: SendKeys "{Esc}"
330: MyString = "You have already begun processing on this
VIN. You are awaiting NC DMV faxed reply."
340: MsgBox MyString, 48, "Be Careful - " & MyApp$ & ", rev. "
& MY_VERSION$
350: Exit Sub
360: End If