Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

MS Access search form -> open report?

scenario:

FormName:frmSearch

objects: (all unbound)

txtBeginDate

txtEndDate

cboNameList (contains Names from tblNameList onLoad event)

cboCategoryList (contains Category from tblCategoryList onLoad event

() Show Detailed report (option bution to open dtlMonthlyReport)

() Show Summarized report (option bution to open smrMonthlyReport)

() Search Reciept (option button to open rcptReport)

() Search Voucher (option button to open vcrReport)

btnSearch

[ I want to display search result here within the form ... but dont konw how?]

================= end of frmSearch ==============

notes:

all the reports are link to its own form and the date field formated to accept input from within the form

the purpose of this form (frmSearch) is to show the search result based on user defined criteria and then from the search result user can double click to open the designated report with the parameters from the sellected search result.

question:

1) how do I display the search result(s) within the form itself (in VB its dataGrid) for the option 3 & 4 only.

2) I have tried using the "SELECT " method in sqlCriteria string using

doCmd.OpenReport .......,sqlCriteria

but an error msg appears saying "....there are more than 1 record based on ..... consider using EXISTS reserved word ......"

So how do I open the designated report based on the search criteria?

I have heard of this PARAMETERS in querydef but not sure how to use it.

can you guys help me? Im stuck. whenever I want to display the reciept of a certain transaction I have to manually browse to the records (in frmTransaction) then click the button to generate the report. The same goes to the monthly detailed report, where I have to execute the form , enter the date range and click the button. For the summarized report its more troublesome for me to generate the report because it goes through many process. That is why i want to have this "short cut"

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    dont look for a shortcut please.

    Source(s): danish3210
  • ?
    Lv 4
    5 years ago

    you need to attempt this utilizing 2 similar tables. One table for the homestead and one extra for the criteria it has. The factors (i.e. backyard, storage, semi, etc.) may pass in as new rows in the 2d table. you may create a subform for the criteria and embed it into the major homestead kind. maximum get entry to books may have clear descriptions on progression similar tables and subforms.

Still have questions? Get your answers by asking now.