A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

create report based on data from other form?



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 01:32 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default create report based on data from other form?

Or it could be that Project_ID is not an number field. If that is the case
you need to change the call to

DoCmd.OpenReport "test", acViewPreview, ,
"[project_id]=""" & Me![project_id] & """"

Or alternative using ' instead of "
DoCmd.OpenReport "test",acViewPreview,,
"[project_id]='" & Me![project_id] & "'"

Watch out for the line wrap and that should all be on one line. The
newsreader will make that two lines.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Stefan Hoffmann wrote:
hi Seddon,

On 19.04.2010 12:15, Seddon Acaster wrote:
When button (with above code) is pressed I get following message box:

Enter Parameter Value

Ah, good.

When I manually enter a value then the resulting report is displayed
correctly.

What am I doing wrong?

This means that we have either a typo or reference error. For the typo
check the spelling of the parameter name as displayed in the input box
you're getting. For a reference error take a close look at your reports
data source: has the field a table name prefix in its design view?


mfG
-- stefan --

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.