473,888 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stuck with Duane's sample Survey Database

Hi -
I have been trying (for 2 days now) to make some simple surveys (5-7
questions each, each with 2-3 answer choices, always from the list)
using Duane's sample. I've searched and searched posts and all point
to Duane's sample, but I'm just not getting it! Close, but no cigar.

I am a newbie, and the app isn't documented, so I'm stuck in a few
places. Right now I want to see my survey (frmSurveyRespo nses). I
have all the data loaded, but when I choose my survey, I get all the
questions in sfrmResponses, but the responses aren't right for the
question. I basically get the same responses (Yes, No) for each
question, even though question #4 may have N/A as a possible response.

Can someone help?

Here is the RecordSource for the Main Form: (frmSurveyRespo nses - it
works)
SELECT [tblSrvRspns].[SurveyID], [tblSrvRspns].[ResponseID],
[tblSurveys].[SurveyName], [tblSrvRspns].[EEFirstName],
[tblSrvRspns].[EELastName], [tblSrvRspns].[LocationKey],
[tblSrvRspns].[Comments], [tblSrvRspns].[Notes] FROM tblSurveys INNER
JOIN tblSrvRspns ON [tblSurveys].[SurveyID]=[tblSrvRspns].[SurveyID];

RecordSource for the subform (sfrmResponses - doesn't work: Linked on
ResponseID in both master and child)
SELECT DISTINCTROW tblResponses.*, [tblQuestions].[QuestionText],
[tblQuestions].[QuestionLevel1] FROM tblQuestions LEFT JOIN
tblResponses ON [tblQuestions].[QuestionID]=[tblResponses].[QuestionID]
ORDER BY [tblQuestions].[QuestionLevel1];

RecordSource for the combo box that should hold the various responses:
SELECT [tblResponsesLis t].[Response] FROM tblResponsesLis t WHERE
((([tblResponsesLis t].[QuestionID])=[Forms]![frmSurveyRespon ses]![sfrmResponses].Form!txtQuesti onID));
I'm not using many of the features Duane created (level2 level3, etc.
Just not needed).

QuestionID and ResponseID are hidden fields on the subform.

I am stumped - Truly appreciate some help here!
Many thanks in advance -
Sara

Mar 31 '06 #1
2 2568
sounds like there's no join between your question table and answer
table. go to tools relationships and make sure there's a relaitonship
defined between the two.tables (whatever they're called - surveys and
results or whatever.

Apr 1 '06 #2
There were relationships, and I checked them to make sure they were
right. Still nothing.

What I am trying to do is have a drop-down with all the possible answer
choices for each question. I am guessing it has something to do with
the last Form! in
])=[Forms]![frmSurveyRespon ses]![sfrmRespo*nses].Form!txtQuesti onID));
Help!!!

Thanks
sara

Apr 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5727
by: GTF | last post by:
PHP Web Survey Idea.. I have been given an opportunity to create a web based survey. This is a fairly lengthy survey of 60 pages on paper (various multiple choice and free form). These are the Requirements: -Provide a web interface to a database -Database stores the data (duh), but the capacity to extract the data
0
1102
by: Jacob M. | last post by:
Hi, I downloaded Survey Admin sample application from MSDN. Works good. Now, I am trying to find sample of presenting survey and saving data in SQL Server Survey db. Looks like MS removed this example from their site. Please, help me to find this sample application. I appriciate any help. Thanks,
4
1494
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 administration. We hope that this information would help us recreate a realistic environment to help research in 'systems management'. We request network, systems, and database administrators to take this
0
1032
by: Chad | last post by:
Does anyone know how to get the Survey Sample provided by the MSDN to run? I tried changing the IIS to use v1.0 of the .NET framework for .aspx files, as well as, changed the version of the .NET framework used in the BusinessFacade and Survey projects to use both v1.1 and v1.0 of the framework, but to no avail. Any suggestions?
0
851
by: jeve | last post by:
Hello. I have installed the MSDN Survey Sample and get the following error message when I try to run http://localhost/survey/surveyform.aspx Server Error in '/Survey' Applicatio A column named 'Answer' already belongs to this DataTable: Cannot set a nested table name to the same name Has anybody else had this error message?
0
1122
by: Jason Walters | last post by:
I downloaded and install both the Survey Sample and the Survey Admin pieces. Installed both of them and everything works. The problem I'm having is when I fill out the test survey nothing gets saved back to the SQL database. It saves a new session number in the session table everytime, but never puts anything the the response table. I'm not getting an error and the surveyform.aspx gives me the "Thank you" message like it was stored ok. ...
3
2447
by: Steve Franks | last post by:
I have a need to create a customer satisfaction surveys in ASP.NET. Nothing too fancy, just a handful of questions. Can anyone guide me to an ASP.NET sample application which demonstrates how to create an online survey?
0
1112
by: Jéjé | last post by:
Hi, where is the survey sample application? I've found some site around this sample, but I can't found it. any idea? or any other link and other sample? thanks.
4
1665
by: sara | last post by:
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,...
0
9961
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9802
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11186
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10439
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9597
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7148
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6015
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4248
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.