Basic VB 3.0 Problem - Please Help 1st Timer

Basic VB 3.0 Problem - Please Help 1st Timer

Post by Skin » Tue, 12 Nov 1996 04:00:00



I'm sorry to have to use xBase terms, but it's the only way I know to
get my message across.

I have a single form acting on a single table in a single database.
The application is to enter the results from a survey.   The survey
has 36 questions with a Low, Medium, High response possible to each
question.  I have created a form with 36 frames and three check boxes
in each frame.  What I would like to do is do an "append blank" then
fill in the check boxes, then write the a new record.  After the
frames on the screen I have a command button with the programming
data1.recordset.addnew, this works to a certain degree.   The problem
is that when I run the program a 2nd, 3rd, etc. time, the form comes
up with a few of the check boxes already checked off.   When I try to
enter test data it appears that the last record of the previous run is
being overwritten by the first data entry screen from the current run.

I know it must be something simple, please help, the pressure is on !!

thanx .......

=================================================================
David Laneville, Manager of I/S, City of Timmins.
Snail Mail:     220 Algonquin Blvd E., Timmins, Ontario.  P4N 1B3
=================================================================
If it wasn't for the last minute, not a damned thing would get done !!!!

 
 
 

Basic VB 3.0 Problem - Please Help 1st Timer

Post by Michael R. Washingto » Tue, 12 Nov 1996 04:00:00



> I'm sorry to have to use xBase terms, but it's the only way I know to
> get my message across.

> I have a single form acting on a single table in a single database.
> The application is to enter the results from a survey.   The survey
> has 36 questions with a Low, Medium, High response possible to each
> question.  I have created a form with 36 frames and three check boxes
> in each frame.  What I would like to do is do an "append blank" then
> fill in the check boxes, then write the a new record.  After the
> frames on the screen I have a command button with the programming
> data1.recordset.addnew, this works to a certain degree.   The problem
> is that when I run the program a 2nd, 3rd, etc. time, the form comes
> up with a few of the check boxes already checked off.   When I try to
> enter test data it appears that the last record of the previous run is
> being overwritten by the first data entry screen from the current run.
> It almost sounds like your checkboxs are bound to a data control. I really suggest

you not use the Data Control and do your data manipulations directly with the JET
Engine using Data Access Objects(DAO). As long as the check boxes are bound to the data
control you are going to have this problem.

 
 
 

Basic VB 3.0 Problem - Please Help 1st Timer

Post by Rob Orne » Sun, 17 Nov 1996 04:00:00


I would strongly urge you to forget about using bound controls and go for
an unbound solution.  There are too many restrictions that you have to deal
with when working with bound controls and you end up with what, in my
opinion, looks like a very amateurish application.

First of all, is it absolutely necessary to have all 36 questions on the
form at the same time?  If not, I would suggest that you load the questions
into an array and show them one at a time.  Your form would have one frame,
one label to show the question, and three option buttons to show low,
medium and high options.  At the bottom of your form, put a Next and
Previous button and let them view one question at a time.  Clicking the
buttons lets them navigate through the questions, both forwards and
backwards.  Each time they respond to a question, update your array.  When
they click the Finish button on your form, do the update to the database
using Data Access Objects (DAO).  If you need some help with this, let me
know, but in the meantime take a look at the following keywords in VB help:

OPENRECORDSET, ADDNEW, UPDATE

Drop me a line if you need more help.

Rob



Quote:> I'm sorry to have to use xBase terms, but it's the only way I know to
> get my message across.

> I have a single form acting on a single table in a single database.
> The application is to enter the results from a survey.   The survey
> has 36 questions with a Low, Medium, High response possible to each
> question.  I have created a form with 36 frames and three check boxes
> in each frame.  What I would like to do is do an "append blank" then
> fill in the check boxes, then write the a new record.  After the
> frames on the screen I have a command button with the programming
> data1.recordset.addnew, this works to a certain degree.   The problem
> is that when I run the program a 2nd, 3rd, etc. time, the form comes
> up with a few of the check boxes already checked off.   When I try to
> enter test data it appears that the last record of the previous run is
> being overwritten by the first data entry screen from the current run.

> I know it must be something simple, please help, the pressure is on !!

> thanx .......

> =================================================================
> David Laneville, Manager of I/S, City of Timmins.
> Snail Mail:        220 Algonquin Blvd E., Timmins, Ontario.  P4N 1B3
> =================================================================
> If it wasn't for the last minute, not a damned thing would get done !!!!

 
 
 

1. Help please: VB 3.0 pro to VB 4.0 pro

Hi

Can anyone please shed some light?

I have some CGI scripts written in Visual Basic 3.0.  They make use of
the "GetPrivateProfileString" function. The scripts work perfectly in VB
3.0 but when I re-compile into new executables under 4.0, they fail with
error 48 - Error in loadinmg DLL.

All of this happens under WIN 95

Any info or pointers will be appreciated.

Franz

--
_________________________________
Franz Dullaart  (021) 650 3053

http://www-jfd.its.uct.ac.za/
_________________________________
Snoepie oor sy inkleurboek:
  "Ek maak altyd die lug blou"

2. Access to SQL Server

3. newbie import/export basic problem, please help please

4. HELP - How do I restart replication on SQL2K after a network outage ?

5. Please Help - SQL 6.0 vb 3.0

6. SQL SERVER 7 BETA 3

7. VFP 3.0 - Report group problem...please help

8. Webdatablade: exploding environment vars

9. Please help with 1st program

10. ODBC FoxPro 3.0 Problem. Help Please

11. menu problem in VFP 3.0 - please help

12. SQLXML 3.0 sp2 installation problem - please help..