473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 (frmSurveyResponses). 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: (frmSurveyResponses - 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 [tblResponsesList].[Response] FROM tblResponsesList WHERE
((([tblResponsesList].[QuestionID])=[Forms]![frmSurveyResponses]![sfrmResponses].Form!txtQuestionID));
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 2546
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]![frmSurveyResponses]![sfrmRespo*nses].Form!txtQuestionID));
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
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...
0
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...
4
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...
0
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...
0
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...
0
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...
3
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...
0
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
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. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
0
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...
0
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...
0
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,...
0
jinu1996
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 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.