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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Report Code for Run time parameter

Status
Not open for further replies.

DK47

Programmer
Jun 3, 2003
118
0
0
US
Hey All,
Is there a way to code parameter searches to fill a data report by the user?

We have an access database using SQL and we need to draw Dates and Values based on which user is logged in.
The code I use for this which loads a datagrid is:

frmHoldings.adoHistory.RecordSource = "SELECT * FROM History WHERE Investor_Number = " & frmStartPage.txtInvestorNumber & " Order By Date DESC"
frmHoldings.adoHistory.Refresh

How would I go about coding the command object of the data environment to return only dates and values based on frmStartPage.txtInvestorNumber?

Thanks
Dwight
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top