| Member with 2 posts. THREAD STARTER | | Join Date: Jul 2012 Experience: Beginner | |
Hi OBP thank you for the reply how ever I solved it using the following VBA Code
If Me.[InvoiceSubform].Form.FilterOn = True Then
Me.[InvoiceSubform].Form.Filter = ""
Me.[InvoiceSubform].Form.FilterOn = False
Me!btn.Caption = "Apply Filter"
Else:
Me.[InvoiceSubform].Form.Filter = "[Paid]=No"
Me.[InvoiceSubform].Form.FilterOn = True
Me!btn.Caption = "Remove Filter"
End If
And didn't get a Chance to Post till now. I am learning from scratch but learning fast My Project is working In amazing ways and really helping to speed up my Work so no im more productive. Learned allot From googling in the beginning and youtube videos
Then i Have one more Question For now I need a Button to Fill in values (InvoiceNumber) In my subforms Rocords which is Filtered By Account Number, So far i Have this code
Private Sub load_Click()
Me!LoadWaybillsSubform!InvoiceNumber = Me.InvoiceNumber
End Sub
But the problem is that it only fills one Record then you have to click on the next record and click the button again. I tryed to use the docmd gotorecord code and made a loop but that goes through all the records and only the filtered ones like I need It to do. Would that be possible |