sql statment

  • Thread starter Thread starter lilbit27
  • Start date Start date
L

lilbit27

I would like to filter a subform by using a sql statement in vba.

I want to be able to say. afterupdate on a combo box. select "*"
where[excd]<>"ne" and [billstatus] = bu then select the items where
[excd]="Ne" and [billstatus]<>= bu.

What I want is all the "BU bill status that [excd] does not equal "ne"
and all the items were {excd] = ne but the bill status does not equal
bu.
 
I would first practice/fine tune using a query.... you can get it working
using design view then take a look at the sql view and copy that into the
form....or base the subform on your query....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top