Hi Everone
I have an issue with athe dcount below, when the code runs im getting a Type 13 (Type Mismatch) when i try to run this dcount
Dim countID As String
countID = DCount("SOIID", "SOIDetails", "WORKORDERID='" & Forms!SOIAdddetails!WorkOrderTXTBox & "'" And LPosition > 0)
this is the code on the form this all runs when a text feilds after update event.
Dim LPosition As String
LPosition = InStr(Me.PartNumberDescriptionTXTBox, "*")
If LPosition > 0 Then
Me.Ends7 = True
End If
If LPosition = 0 Then
Me.Ends7 = False
End If
Dim countID As String
countID = DCount("SOIID", "SOIDetails", "WORKORDERID='" & Forms!SOIAdddetails!WorkOrderTXTBox & "'" And LPosition > 0)
if i comment out this line countID = DCount("SOIID", "SOIDetails", "WORKORDERID='" & Forms!SOIAdddetails!WorkOrderTXTBox & "'" And Private Sub WorkOrderTXTBox_AfterUpdate() > 0) no error is produced
how do i include the variable LPosition as a critria in my dcount?
many thanks
steve