Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

openReport [where] condition brings up input box with description of correct answer

$
0
0
So, this is my first post on VBF! Thank you guys in advance for the help. I've luckily had a great mentor to hound when questions come about, as for now I Need all of You!

I'm trying to open a report using the following code:

Code:

Private Sub openCellarRpt_Click()
 DoCmd.OpenReport "cellarRPT", acViewReport, , "brewID = " & Me.subSchedBrew.Form.brewID, acDialog
 
End Sub

This opens the report 'cellarRPT' in dialog view, with the where condition setting the field 'brewID' on the report to the field 'brewID' located within a datasheet-view sub form 'subSchedBrew' on the main form that houses the button. I've used a very similar where condition on other forms/reports with great success. It's merely pointing at one record, and pulling up associated records in a linked table.

In this case, i click the openCellarRpt button and it brings up an input box. Title: Enter Parameter Value, Discription: The Value I need to link the report! If I copy the description, which is the value I'm looking for it to find, then it works perfectly. Otherwise it crashes.

This picture should help explain, and thanks again for any help!!
Attachment 92469
Attached Images
 

Viewing all articles
Browse latest Browse all 594

Trending Articles