Hi Jeff,
The [Primary Skill] field is from the table "Australia & SE Asia". I have a
form "Data Entry - Australia & SE Asia" where there's also a combo box for
the user the input the skills into the [Primary Skill] field.
The "Select Skill - Australi & SE Asia" form is for the user to filter out
the consultants base on the [Primary Skill], which is why i put the [Select
Skill] Combo box. This combo box contains a list of all the skill type in
[Primary Skill] field.
For example, if the user click skill 20 from [Select Skill] Combo box, it
should prints out all the consultants that has skill 20 in their [Primary
Skill] field in the report.
I hope you understand what I'm saying and what I'm trying to do. Thanks very
much for your help.
Jeff Boyce said:
Michelle
If I'm reading correctly, you have a combo box named [Select Skill], but
your code seems to be opening the report with a field named [Primary Skill].
What am I missing?
Jeff Boyce
<Access MVP>
I can't seem to get it to work properly. Sorry for all the troubles.
I have a table called "Australia & SE Asia" where all the details of
consultants are stored, including the Primary Skill and Secondary Skill
(they
both come from the same skill list as user select them from a combo box on
the form "Data Entry - Australia & SE Asia").
I have a query titled "Skill - Australia & SE Asia" which have the fields
Primary Skills (sorted in ascending), Surname (sorted in ascending),
Firstname, Category and Secondary Skill. I used this query to display the
report titled "Skill - Australia & SE Asia".
I have this form "Select Skill - Australia & SE Asia" where it has a combo
box [SelectSkill] and a command button [PrintSkill] that has the following
code:
Option Compare Database
Private Sub PrintSkill_Click()
On Error GoTo Err_PrintSkill_Click
Dim stDocName As String
stDocName = "Skill - Australia & SE Asia"
DoCmd.OpenReport stDocName, acPreview, "", "[SkillList] = [Australia &
SE Asia]![Primary Skill]"
Exit_PrintSkill_Click:
Exit Sub
Err_PrintSkill_Click:
MsgBox Err.Description
Resume Exit_PrintSkill_Click
End Sub
The results of the report is what I wanted however, after I click on the
[PrintSkill] button, it pops up a input box requesting me to "enter
parameter
value" of the SkillList. How do I make it to get the value from the combo
box? Hope you can help this damsel in distress. Thanks in advance.
Regards,
Michelle Lee