filter data on a form - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

filter data on a form

I need to open a form with criteria. If I use the wizard I get the following code[code]stDocName = "frmCrisisLog"
stLinkCriteria = "lngCaseID = 1305384"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria[/code]

when I use this code the form opens and the status line indicates that the records are filtered however, the record (data) is not based on the criterion as above.


the record toolbar indicates a filter is applied but a blank record is displayed i.e. not data... empty fields/ controls

when I poke the filter button all records are shown and data is displayed for the 1st record

when I poke the filter button a second time the correct record is displayed i.e. based on the criterion/ filter

what am I missing?? any help would be appreciated.

Sign In or Register to comment.