Mansoor Ahmad
Registered User.
- Local time
- Today, 06:07
- Joined
- Jan 20, 2003
- Messages
- 140
Dear All
Can somebody tell me what is wrong with the following statement. It is not working.
Case 1
myInt = Forms![New form Sample]!Cbpartno
If IsNull(Forms![New form Sample]!CbCustomer) Then
MsgBox ("Please select Customer first")
Else
DoCmd.OpenForm "F_Formview", acNormal, , "[CUSTOMER] = '" & myInd & "' And [PART NO] = '" & myInt & "'"
End If
Thanks
Can somebody tell me what is wrong with the following statement. It is not working.
Case 1
myInt = Forms![New form Sample]!Cbpartno
If IsNull(Forms![New form Sample]!CbCustomer) Then
MsgBox ("Please select Customer first")
Else
DoCmd.OpenForm "F_Formview", acNormal, , "[CUSTOMER] = '" & myInd & "' And [PART NO] = '" & myInt & "'"
End If
Thanks