Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with passing from combo box to query

Status
Not open for further replies.

wgma

IS-IT--Management
Nov 16, 2007
24
US
I have a form with a combo box. I need to pass the value of the combo box to a query that will in turn populate a report. Everything that I have tried so far does not work.

Can someone please help me?

Here is what I have so far:

QUERY -- qryManifestHeaderShip
SELECT tlbShip.ShipName, tlbShip.ShipNationality, tlbShip.NameOfMaster
FROM tlbShip
Where (tblShip.ID=forms!frmBillOfLading!cboExportCarrier);

CALL FROM FORM --
DoCmd.OpenReport "rptManifestHeader", acViewPreview

The recordsource for the report is the query

Each time that I try to run the report I am prompted for the parameter.

Thanks.
 
Is the form frmBillOfLading open? Have you double-checked the spelling or tried the expression builder?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top