Help filtering records

B

Boz

Hi...need a little help.

I have a table with the following fields:

Vendor
SKU
Description
Part Number
Unit of Measure
Buy Pack

I am trying to create a report that would allow me to select the Vendor from
a combo box then filter the records to only print the sku, descriptions, part
numbers, etc. for that vendor.

I've tried running a query, but I can't seem to get it right. Any help you
could provide would be greatly appreciated.
 
P

pietlinden

Hi...need a little help.

I have a table with the following fields:

Vendor
SKU
Description
Part Number
Unit of Measure
Buy Pack

I am trying to create a report that would allow me to select the Vendor from
a combo box then filter the records to only print the sku, descriptions, part
numbers, etc. for that vendor.

I've tried running a query, but I can't seem to get it right. Any help you
could provide would be greatly appreciated.

one of the arguments when you open a report is the filter/where
clause.

Just pass a valid where clause, and you're off to the races.
cQUOTE= " ' "

strFilter = "[Vendor]=" & cQUOTE & me.cboVendor & cQUOTE
DoCmd.OpenReport "MyReport", strFilter
 

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

Top