subform does not show records

Hi
on my app I do have a form/subform set. They are not linked, but the subform is bound to a record set that is constructed on the main form.
on the form, when I press a button, it should list, in the subform, all records in the data set should show. It is a LIST ALL BUTTON.

so my code on the button is:

    strFilter = "T03_DocID > 0"
    Me.F1401_ListaDocsSelecionados.Form.Filter = strFilter
    Me.F1401_ListaDocsSelecionados.Form.FilterOn = True
    Me.F1401_ListaDocsSelecionados.Form.Recalc

Open in new window


The record set is ok (contains 5 records and the 5 records' ID [T03_DocID] is greater than 0 for all
however, no record is shown at all! the subform is totally empty

I am attaching screenshots..
Screen-Shot-2018-03-08-at-16.59.47.pngScreen-Shot-2018-03-08-at-17.01.02.pngScreen-Shot-2018-03-08-at-17.02.23.png
João serras-pereiraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mbizupCommented:
Is your recordsource properly set?  Also make sure that the Master-Child links are not interfering with your desired output.

Give this a try instead:
    dim strFilter as string
    strFilter = "T03_DocID > 0"
   Me.F1401_ListaDocsSelecionados.Form.Recordsource = "SELECT * FROM YourTableName WHERE " & strFilter

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
João serras-pereiraAuthor Commented:
Found!!!!!
Thanks to you. (but you won't believe)
By mistake, all fields were set to invisible
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.