Re: REPORT not displaying
- From: Piet Linden <pietlinden@xxxxxxxxxxx>
- Date: Sun, 16 Aug 2009 02:02:29 -0700 (PDT)
On Aug 16, 12:37 am, "ghostman via AccessMonster.com" <u51724@uwe>
wrote:
I having problem with my report. I have pop up form with a combo box where
you can select the languages. (English, Arabic, Hindi, etc..) based on my
Instructor table and a command button to trigger the report. The problem is
there is no report displayed after selecting the language and clicking on the
command button while if you do it in the query itself, it works fine. (a
parameter value pops up and i type the language). it also works without using
the pop up form, but i want it to be complicated lol!
i don't know what i am missing...
here are some data:
Row source of my combo box [SelectLanguage]:
SELECT [Instructors].[InstructorID], [Instructors].[Language] FROM
Instructors ORDER BY [Language];
Command Button [cmdPreview] onClick Event procedure:
Private Sub cmdPreview_Click()
Me.Visible = False
End Sub
and here's the SQL of the query based on the Instructor table:
SELECT Instructors.InstructorID, Instructors.FirstName, Instructors.
MiddleName, Instructors.LastName, Instructors.Initials, Instructors.
JobPosition, Instructors.Language, Instructors.TimeOfAvailabilityF,
Instructors.TimeOfAvailabilityT, Instructors.VacationScheduleF
FROM Instructors
WHERE (((Instructors.Language)=[forms]![ParamForm]![SelectLanguage]));
--
Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/access-reports/200908/1
Really simple. The value getting passed is the value in the first
column of the combobox, which is InstructorID, and not Language, which
is what I think you intend. If you want to capture the value in the
next column, you need to use:
WHERE (((Instructors.Language)=[forms]![ParamForm]!
[SelectLanguage].Column(1)));
.
- Follow-Ups:
- Re: REPORT not displaying
- From: ghostman via AccessMonster.com
- Re: REPORT not displaying
- From: ghostman via AccessMonster.com
- Re: REPORT not displaying
- References:
- REPORT not displaying
- From: ghostman via AccessMonster.com
- REPORT not displaying
- Prev by Date: REPORT not displaying
- Next by Date: Re: REPORT not displaying
- Previous by thread: REPORT not displaying
- Next by thread: Re: REPORT not displaying
- Index(es):
Relevant Pages
|