I posted this and got a suggestion that didn't work, so I'm trying
again.
I am trying to use Duane Hookum's survey database. I am still new at
all this, and doing ok, but having a problem.
When I open the form to enter survey results (frmSurveyResponses) and
click on "Enter Results", the subform displays, and shows the right
questions for the survey I am working on. BUT, the answer choices are
wrong. I get the same choices (Yes, No) in each combo box, even though
I have some questions with another possible answer, such as "N/A".
I see in Duane's code there is a Form! after Forms
collection!Formname!subformname!
and before the fieldname in the WHERE Clause. I am guessing this is to
somehow tell the subform to match the questionID, so it pulls the right
answer choices for the right question. I've never seen that before and
can't find posts on it. Maybe that is part of my problem somehow? I
do get the same syntax when I use the expression builder for what I
think is supposed to happen here, so I think the format is correct (and
it is what Duane has in his sample).
When I run just the subform and type in a QuestionID at the prompt, I
do get the right info. Just not when it's running in the actual survey
form. The form and subform are linked on ResponseID, as in Duane's
sample.
Basically I want to display a subform for the surveyID the user chose.
Each question listed in the subform, with a combo box of the answer
choices for each.
Here's the code for the combo box:
SELECT tblResponsesList.Response
FROM tblResponsesList
WHERE
(((tblResponsesList.QuestionID)=[Forms]![frmSurveyResponses]![sfrmResponses].[Form]![txtQuestionID]));
I'm tearing my hair out on this one...Please help!
Thank you !
sara 4 1648
sara wrote: I posted this and got a suggestion that didn't work, so I'm trying again.
I am trying to use Duane Hookum's survey database. I am still new at all this, and doing ok, but having a problem.
When I open the form to enter survey results (frmSurveyResponses) and click on "Enter Results", the subform displays, and shows the right questions for the survey I am working on. BUT, the answer choices are wrong. I get the same choices (Yes, No) in each combo box, even though I have some questions with another possible answer, such as "N/A".
I see in Duane's code there is a Form! after Forms collection!Formname!subformname! and before the fieldname in the WHERE Clause. I am guessing this is to somehow tell the subform to match the questionID, so it pulls the right answer choices for the right question. I've never seen that before and can't find posts on it. Maybe that is part of my problem somehow? I do get the same syntax when I use the expression builder for what I think is supposed to happen here, so I think the format is correct (and it is what Duane has in his sample).
When I run just the subform and type in a QuestionID at the prompt, I do get the right info. Just not when it's running in the actual survey form. The form and subform are linked on ResponseID, as in Duane's sample.
Basically I want to display a subform for the surveyID the user chose. Each question listed in the subform, with a combo box of the answer choices for each.
Here's the code for the combo box:
SELECT tblResponsesList.Response FROM tblResponsesList WHERE (((tblResponsesList.QuestionID)=[Forms]![frmSurveyResponses]![sfrmResponses].[Form]![txtQuestionID]));
I'm tearing my hair out on this one...Please help!
Thank you ! sara
What happens if you enter
tblResponsesList.QuestionID = _
Forms!frmSurveyResponses!sfrmResponses!txtQuestion ID
(I put in the _ so it doesn't wordwrap)
Another way to reference a subform field is to use (). Ex:
Me("sfrmResponses")!txtQuestionID
Same result. All answer options are Yes/No only.
Other thoughts?
Sara
"sara" <sa*******@yahoo.com> wrote in
news:11**********************@g10g2000cwb.googlegr oups.com: I posted this and got a suggestion that didn't work, so I'm trying again.
I am trying to use Duane Hookum's survey database. I am still new at all this, and doing ok, but having a problem.
When I open the form to enter survey results (frmSurveyResponses) and click on "Enter Results", the subform displays, and shows the right questions for the survey I am working on. BUT, the answer choices are wrong. I get the same choices (Yes, No) in each combo box, even though I have some questions with another possible answer, such as "N/A".
I see in Duane's code there is a Form! after Forms collection!Formname!subformname! and before the fieldname in the WHERE Clause. I am guessing this is to somehow tell the subform to match the questionID, so it pulls the right answer choices for the right question. I've never seen that before and can't find posts on it. Maybe that is part of my problem somehow? I do get the same syntax when I use the expression builder for what I think is supposed to happen here, so I think the format is correct (and it is what Duane has in his sample).
When I run just the subform and type in a QuestionID at the prompt, I do get the right info. Just not when it's running in the actual survey form. The form and subform are linked on ResponseID, as in Duane's sample.
Basically I want to display a subform for the surveyID the user chose. Each question listed in the subform, with a combo box of the answer choices for each.
Here's the code for the combo box:
SELECT tblResponsesList.Response FROM tblResponsesList WHERE (((tblResponsesList.QuestionID)=[Forms]![frmSurveyResponses]!
[s frmResponses].[Form]![txtQuestionID]));
I'm tearing my hair out on this one...Please help!
Thank you ! sara
Have you modified the subform to allow the third option?
--
Bob Quintal
PA is y I've altered my email address.
I don't know what that means. If I open the subform by itself, and
enter in a question # when prompted, I get the proper answers for any
question # I type in. But, when it's in the actual form for entering
the survey results, I get only Yes/No - even the first question doesn't
show all 3 choices.
Does this help you help me?
This is very frustrating for me.
Thanks
Sara This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: PiedmontBiz |
last post by:
I am finishing up a simple survey for a web site.
I am creating a server-side data base using the shelve module.
I am a relative python newcomer.
I began with anydbm, but found that shelve uses...
|
by: DarthMacgyver |
last post by:
Hello,
I recently wrote a survey application. Each question is very similar.
The first questions gives me a problem when there are multiple people
taking the survey (The Database connection...
|
by: fabiool |
last post by:
Hi,
We are a systems research group at the Computer Science department
at
Rutgers University, and are conducting a survey to understand details
about network, systems and database...
|
by: cal |
last post by:
VDC, a research firm, is doing a short survey on databases used on the
..NET platform.
In exchange for your time VDC is offering survey respondents that
following benefits:
1. A chance to...
|
by: StBond |
last post by:
Hi everyone,
I am new to Access and Visual Basic so things my be getting across a
bit cloudy. I only started using VB for one week.
I am having a little problem with the database that I am...
|
by: Jéjé |
last post by:
Hi,
I have a custom aspx page which access RS (Reporting Services) using the
webservice interface.
I'm using the delegation (defautcredentialcache) to send the user
authentication to RS.
RS...
|
by: james |
last post by:
Several prominent researchers are conducting a survey and looking for
500 respondents by Friday on the topic of enterprise architecture and
software development. Here is the link to the survey:...
|
by: Max |
last post by:
hi
I am using System.Web.Mail.MailMessage with System.Web.Mail.SmtpMail to
send mail. now the my question is,
Is it compulsory to add fields smtpauthenticate, sendusername and
sendpassword...
|
by: EManning |
last post by:
I'm developing an unbound form with a series of questions on it. Each
question is either a text box or an option group. I have coding in the
AfterUpdate event of each control to highlight the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |