B
Billp
Hi,
Looking at the On Change of a text box to apply a filter to a combo box.
The text box is populated when the form is a new record.
The text would be for example V00007 (>L00000)
I remove the trailing numbers to leave the alpha.
Example "V"
The alpha is the filter to the combo so that it filters all records LIKE as
the first letter will always be a letter.
So far I have.
Private Sub txtQuote_Number_Change()
Dim strNewNumberPrefix As String
strNewNumberPrefix = Left(Me![txtQuoteNumber], 1)
Dim s As String
If Not IsNull(Me![txtQuoteNumber]) Then
s = strNewNumberPrefix
End If
cboSER_Exists.RowSource = s
End Sub
So we filter out everything that doesn't start with "V" so that s has to be
LIKE for the row source.
Also and not only does it have to be like, but also show only those records
that have an empty check box called "QuoteNumberRef" which is in the table
that the combo is linked too.
I am lost - but hope to be found.
I have scanned the other posts and as usaul they are not quite the same.
Help would be appreciated.
Best regards
Bill
Looking at the On Change of a text box to apply a filter to a combo box.
The text box is populated when the form is a new record.
The text would be for example V00007 (>L00000)
I remove the trailing numbers to leave the alpha.
Example "V"
The alpha is the filter to the combo so that it filters all records LIKE as
the first letter will always be a letter.
So far I have.
Private Sub txtQuote_Number_Change()
Dim strNewNumberPrefix As String
strNewNumberPrefix = Left(Me![txtQuoteNumber], 1)
Dim s As String
If Not IsNull(Me![txtQuoteNumber]) Then
s = strNewNumberPrefix
End If
cboSER_Exists.RowSource = s
End Sub
So we filter out everything that doesn't start with "V" so that s has to be
LIKE for the row source.
Also and not only does it have to be like, but also show only those records
that have an empty check box called "QuoteNumberRef" which is in the table
that the combo is linked too.
I am lost - but hope to be found.
I have scanned the other posts and as usaul they are not quite the same.
Help would be appreciated.
Best regards
Bill