Mrs.Meeker
Registered User.
- Local time
- Today, 13:56
- Joined
- Mar 28, 2003
- Messages
- 172
If[tbluser]![survey_type] = "QA" then [tblQuestions]![UserType] = "b" else ("b" or "d")
Do you see something wrong with this? I received an error message that said I had invalid syntax - maybe an operand without an operator...it was highlighting the word 'then'.
What I'm trying to accomplish is build a form which selects the survey type either "b" or both "b & d".
This is in an append query.
"d" is questions for a specific group (design)
"b" is questions for both groups (design and field)
There is also the following criteria under the 'QuestionTypeHeading':
[Forms]![frmDataSelection]![txtPackageTypeValue] Or
[Forms]![frmDataSelection]![txtProjectTypeValue] Or
[Forms]![frmDataSelection]![txtAbutmentTypeValue] Or
[Forms]![frmDataSelection]![txtPierTypeValue] Or
[Forms]![frmDataSelection]![txtSuperstrTypeValue]
The DataSelection form contains option buttons for various types of questions. These questions are chosen from the table according to what selections are made. Then those questions need to be different according to the user type.
I tried placing the criteria is 2 other update queries (named qryGenerateQA, qryGenerateQC and then the qryBuildSurvey) This didn't work.
So I'm trying this if statement that I obviously can't write correctly.
Thanks for your help!
rhonda
Do you see something wrong with this? I received an error message that said I had invalid syntax - maybe an operand without an operator...it was highlighting the word 'then'.
What I'm trying to accomplish is build a form which selects the survey type either "b" or both "b & d".
This is in an append query.
"d" is questions for a specific group (design)
"b" is questions for both groups (design and field)
There is also the following criteria under the 'QuestionTypeHeading':
[Forms]![frmDataSelection]![txtPackageTypeValue] Or
[Forms]![frmDataSelection]![txtProjectTypeValue] Or
[Forms]![frmDataSelection]![txtAbutmentTypeValue] Or
[Forms]![frmDataSelection]![txtPierTypeValue] Or
[Forms]![frmDataSelection]![txtSuperstrTypeValue]
The DataSelection form contains option buttons for various types of questions. These questions are chosen from the table according to what selections are made. Then those questions need to be different according to the user type.
I tried placing the criteria is 2 other update queries (named qryGenerateQA, qryGenerateQC and then the qryBuildSurvey) This didn't work.
So I'm trying this if statement that I obviously can't write correctly.
Thanks for your help!
rhonda