473,666 Members | 2,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiform questionnaire overwrites first record

Dear Access Gurus,

I have a database which I hoped to use to administer questionnaires,
or rather that someone who knows nothing about Access could use to
administer them. Each q'aire item is on a different form and I dropped
in command buttons on each to move forward and backward through the
"pages" of the q'aire. Problem is, the first record in the common
underlying table is overwritten each time we go through the q'aire.
(The code to open the next form is accompanied by code to close the
previous -- originally I thought the problem was that multiple forms
were attempting to write to the same record.) On the first form, which
launches automatically via an autoexex macro, I assign some variables
via VBA code in a new record and this works correctly each time.
However the controls on subsequent forms seem to point to the first
record only. It feels like a "gotcha" kind of problem that many others
have probably solved but I haven't been able to find a solution in the
FAQs. I figure it has something to do with record navigation that must
be done within each form as it is opened, but have not been able to
get recordset.MoveL ast to work, for instance. Assume for the purposes
of this question that I am stuck having to fix this database
application and that other well-known solutions for questionnaire
administration are not available.

Many thanks for info/pointers.
Nov 12 '05 #1
3 2227
I would read Keri Hardwick's posts on creating a questionnaire in
Access. She knows her stuff and explains in good detail how to do it.
Search the NG for her name and "survey".
Nov 12 '05 #2
pi********@hotm ail.com (Pieter Linden) wrote in message news:<bf******* *************** ****@posting.go ogle.com>...
I would read Keri Hardwick's posts on creating a questionnaire in
Access. She knows her stuff and explains in good detail how to do it.
Search the NG for her name and "survey".


I have found no message in these threads addressing specifically my
question, although there is plenty of solid advice on other design
issues. Any other pointers come to mind? I'm so close and this seemed
such a simple problem. Obviously not!

Thanks in advance,

Jason
Nov 12 '05 #3
DFS
Jason,

You're probably doing some or all of these, but just in case:

* open your initial form in data entry mode, which will start a new record
* assign each new questionnaire a unique ID, from an AutoNumber field in a
table or another way
* capture the new questionnaire ID in a global variable, or pass it from
form to form, and use it to select the correct records

You might also look at reducing the number of forms; one per question seems
excessive. You can use page breaks on a single form.

Post your db structure and I might have some other ideas.

"Jason A. Thompson" <ja*@northweste rn.edu> wrote in message
news:a9******** *************** ***@posting.goo gle.com...
Dear Access Gurus,

I have a database which I hoped to use to administer questionnaires,
or rather that someone who knows nothing about Access could use to
administer them. Each q'aire item is on a different form and I dropped
in command buttons on each to move forward and backward through the
"pages" of the q'aire. Problem is, the first record in the common
underlying table is overwritten each time we go through the q'aire.
(The code to open the next form is accompanied by code to close the
previous -- originally I thought the problem was that multiple forms
were attempting to write to the same record.) On the first form, which
launches automatically via an autoexex macro, I assign some variables
via VBA code in a new record and this works correctly each time.
However the controls on subsequent forms seem to point to the first
record only. It feels like a "gotcha" kind of problem that many others
have probably solved but I haven't been able to find a solution in the
FAQs. I figure it has something to do with record navigation that must
be done within each form as it is opened, but have not been able to
get recordset.MoveL ast to work, for instance. Assume for the purposes
of this question that I am stuck having to fix this database
application and that other well-known solutions for questionnaire
administration are not available.

Many thanks for info/pointers.

Nov 12 '05 #4

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

Similar topics

7
2130
by: Steve Wylie | last post by:
Last year a kind soul by the name of Lasse Reichstein Nielsen answered a question for me on this newsgroup, including a script that solved my problem. I now need to script to be slightly amended to take account of something, and I am posting this message in the hope that Lasse, or another equally talented reader, can help with this latest tweak to the script. On this newsgroup I asked for help with a questionnaire I was doing in HTML &...
3
6803
by: Tom_F | last post by:
To comp.databases.ms-access -- I have a questionnaire for which I would like to design a MIcrosoft Access form. I understand that the proper Access table structure would be: Respondent_ID Question_ID Response 101 1 Yes 101 2 No 101 3 Yes
0
1639
by: Christian Zotter | last post by:
Hello NG, I am a student at UDA in Austria, Austrian Partner of International Universities. To finnish my study i have to do a final year project. I have choosen the topic 'Evaluation of low cost CMS systems' for my project. Most of them are written in PHP, so i thought that this NG is a good place to ask for help.
8
2789
by: maxvalery | last post by:
Hi, Here's a worthy challenge for ya'll. I'm trying to build a questionnaire in php and need help understanding the logic behind the process. Here's an example that explains everything: 1) What quality is most important to you in a car? a) Reliability b) Affordability c) Large size
1
3031
by: javedna | last post by:
Can PHP help with the following as I have tried in the MYSQL Forums and cant get any help Thanks Nabz ---------------------------------------- Hi I am developing a PHP MYSQL questionnaire tool. The problem I am having is that of inserting all the answers into the table. The questionnaire is Dynamic so the number of questions can vary. I have a variable that counts them so at the moment there is 75 questions.
7
2093
by: javedna | last post by:
Hi guys Ive got a simple problem, im designing an online questionnaire and on submission the coding that I have used to validate whether a user has filled in all the questions is supposed to identify any questions they have missed out and print out a simple error message. It correctly identify which questions have not been filled in but returns the following error message too: . . .
2
1467
by: Vili | last post by:
Hi all I am having problems with creating an functional questionnaire with asp.net 2.0 and MSSQL 2005 database. I have a table with field id (key & auto int), clientId (int), QuestionId (int), And answer (nvarchar(255)) and a set of questions on an another table. Questions can have 0 or more answers
1
1569
by: Gabriel | last post by:
Hi All, (First my apologies for this kind of "spam" message. But for my thesis this will be my once in a lifetime spam moment... ) At the moment I have to graduate for my master in Business Information Management and need to do a survey for my thesis. The thesis is about Web vs. Desktop based applications and the differences perceived by the user. So not from the management/technology point of view but from the end-user. I focus now...
4
2152
by: QntmPg | last post by:
Hi all, I have read through what I could find on previous questions regarding using the OpenArgs property, but I'm still not able to get my form to open correctly. I'm not sure exactly where the problem is, so I'll try to describe what I'm doing in as much detail as I can. Any help is greatly appreciated! I am building a database in Access 2003 to keep track of who participates in a study in our lab, and what study/ies they participate...
0
8445
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
8871
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...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8640
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...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
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
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
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.