Greyowlsl
Mlak Mlak
- Local time
- Today, 14:14
- Joined
- Oct 4, 2006
- Messages
- 204
Hi guys,
Ive been getting that error (thread heading) when trying to run a query
The query runs when i open a form, is there anything wrong with these expressions?
Date Rcvd Field
Product Type Field
This is some code that i have within the form:
Thanks,
Leon
Ive been getting that error (thread heading) when trying to run a query
The query runs when i open a form, is there anything wrong with these expressions?
Date Rcvd Field
Code:
Between (DateAdd("m",([Forms]![Repairs Recent]![text16]),Date())) And Date()
Product Type Field
Code:
[Forms]![Repairs Recent]![text18]
This is some code that i have within the form:
Code:
Private Sub Combo12_AfterUpdate()
If Me.Combo12 = "6 months" Then
Me.Text16 = "-6"
Else: Me.Text16 = "-2"
End If
Me.Requery
End Sub
Private Sub Combo14_AfterUpdate()
If Me.Combo14 = "PVE1200" Then
Me.Text18 = "Like PVE1200"
ElseIf Me.Combo14 = "PVE2500" Then
Me.Text18 = "Like PVE2500"
ElseIf Me.Combo14 = "LS & IRM" Then
Me.Text18 = "Like LS* or LIke IRM*"
ElseIf Me.Combo14 = "BKZ" Then
Me.Text18 = "Like BKZ*"
ElseIf Me.Combo14 = "Other" Then
Me.Text18 = "Not Like PVE* and Not Like LS* and Not Like IRM* and Not Like BKZ*"
Else
End If
Me.Requery
End Sub
Thanks,
Leon