Mansoor Ahmad
Registered User.
- Local time
- Today, 22:57
- Joined
- Jan 20, 2003
- Messages
- 140
Dear All
Can somebody tell me wheather the following statemnt is correct or not in stWhere string
Dim myInd As String
myInd = Forms![Form2]!CmbCustomer
Select Case Me!frmHVAC
Case 1
stWhere = ("[REJECT DATE]Between [date from] And [to]") And (" [CUSTOMER]= '" & myInd & "'") Or ("[CUSTOMER] = '" & myInd & "'") Or ("[REJECT DATE]Between [date from] And [to]")
Case 2
.......
thanks
Can somebody tell me wheather the following statemnt is correct or not in stWhere string
Dim myInd As String
myInd = Forms![Form2]!CmbCustomer
Select Case Me!frmHVAC
Case 1
stWhere = ("[REJECT DATE]Between [date from] And [to]") And (" [CUSTOMER]= '" & myInd & "'") Or ("[CUSTOMER] = '" & myInd & "'") Or ("[REJECT DATE]Between [date from] And [to]")
Case 2
.......
thanks