Hey guys,
I received such great help yesterday with another DLookup issue so I am hoping someone can help with this one.
I have a table with account notes and I am trying to find one code and the date it happened. Then find another code that is a date less than or equal to the first code date.
Below is what I have so far and I am getting nada for results.
So I want to find the code XNON, but it has to be a date equal or less than the code XASU.
I read about nested SQL statements, but not sure if that would work or how to write it. Any help would be greatly appreciated. Thanks!!
I received such great help yesterday with another DLookup issue so I am hoping someone can help with this one.
I have a table with account notes and I am trying to find one code and the date it happened. Then find another code that is a date less than or equal to the first code date.
Below is what I have so far and I am getting nada for results.
Code:
Me.txtfiling = DLookup("NIIN", "tblaccountnotes", "[acctnumber]= '" & Me.txtacctnum & "' AND ([code]= 'XNON' AND [code] <= 'XASU')")
So I want to find the code XNON, but it has to be a date equal or less than the code XASU.
I read about nested SQL statements, but not sure if that would work or how to write it. Any help would be greatly appreciated. Thanks!!