User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 397,790 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,400 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 7324 | Replies: 15
Reply
Join Date: Jun 2004
Posts: 11
Reputation: maxtrixx is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
maxtrixx maxtrixx is offline Offline
Newbie Poster

Re: Best way to develop db for survey?

  #11  
Aug 3rd, 2004
Sorry, I don't think I explained it right. The update isn't the problem here, what is getting in the way is putting the infomation that's in the database in an update form. If I don't bring it all back the user would have to fill out the entire survey again since all form fields are going to be blank. I can't use the column name and I need to user the row to call that answer. Any ideas?
Reply With Quote  
Join Date: Apr 2004
Posts: 321
Reputation: bentkey is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 8
bentkey bentkey is offline Offline
Posting Whiz

Re: Best way to develop db for survey?

  #12  
Aug 4th, 2004
You should just have to present the survey similar to a user taking it for the first time, and execute a select sql statement similar to the one I wrote in my last response for each question, to retrieve that respondents answer to each question.
bentkey MCSE,CCNA

SupportWindow Remote Desktop Software
Bytewiser Data Systems
Reply With Quote  
Join Date: Jun 2004
Posts: 11
Reputation: maxtrixx is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
maxtrixx maxtrixx is offline Offline
Newbie Poster

Re: Best way to develop db for survey?

  #13  
Aug 5th, 2004
Any ideas why this is not working?

SQL = "UPDATE Answers SET Answer = '" & Replace(FieldValue, "'", "''") & "', UserName = '" & UserName & "', SurveyDate = '" & SurveyDate & "', Respondent = '" & Respondent & "', CompanyName = '" & CompanyName & "' WHERE QuestionID = " & QuestionID & " AND IntervieweeID = " & ID & " "

This is what it prints:

UPDATE Answers SET Answer = 'Answer Test', UserName = 'John Doe', SurveyDate = '08/03/2004', Respondent = 'Respondent Name', CompanyName = 'Company Name' WHERE QuestionID = 1705 AND IntervieweeID = 5

I still haven't been able to get the answer to show up. This works if I leave only the Aswer field to be updated.
Reply With Quote  
Join Date: Apr 2004
Posts: 321
Reputation: bentkey is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 8
bentkey bentkey is offline Offline
Posting Whiz

Re: Best way to develop db for survey?

  #14  
Aug 6th, 2004
Regretably I cannot help with the script syntax you are using, because I am not familiar with it. I would still add the survey ID to the where clause in case this respondent should take more than one survey.
bentkey MCSE,CCNA

SupportWindow Remote Desktop Software
Bytewiser Data Systems
Reply With Quote  
Join Date: Jun 2004
Posts: 11
Reputation: maxtrixx is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
maxtrixx maxtrixx is offline Offline
Newbie Poster

Re: Best way to develop db for survey?

  #15  
Aug 6th, 2004
Originally Posted by bentkey
Regretably I cannot help with the script syntax you are using, because I am not familiar with it. I would still add the survey ID to the where clause in case this respondent should take more than one survey.

When you inherit a project you're sometimes stuck with what you got. The last guys used the IntervieweeID as the identifier for the a specific survey. There was 3 surveys in the same db so now I'm splitting them up becuase access will not support al the info from all surveys. SurveyID was the identifier for the 3 different surveys.
Reply With Quote  
Join Date: Jan 2007
Posts: 2
Reputation: OMGALD is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
OMGALD OMGALD is offline Offline
Newbie Poster

Re: Best way to develop db for survey?

  #16  
Jan 24th, 2007
Save yourself the trouble. Try out http://www.survsoft.com
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Database Design Marketplace
Thread Tools Display Modes

Other Threads in the Database Design Forum

All times are GMT -4. The time now is 5:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC