473,396 Members | 1,789 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,396 software developers and data experts.

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.MoveLast 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 2205
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********@hotmail.com (Pieter Linden) wrote in message news:<bf**************************@posting.google. 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*@northwestern.edu> wrote in message
news:a9**************************@posting.google.c om...
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.MoveLast 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
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...
3
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 ...
0
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...
8
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)...
1
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...
7
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...
2
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...
1
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...
0
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...
0
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...

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.