VB 3.0 Problem - Please Help 1st Timer 
Author Message
 VB 3.0 Problem - Please Help 1st Timer

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 !!



Sat, 01 May 1999 03:00:00 GMT  
 VB 3.0 Problem - Please Help 1st Timer

Hi David. or Skinny.

I assume you have bound your Check Boxes to your database table. That is
what is sounds like.

In general terms, you want to do the following:

Data1.Recordset.AddNew

Data1.Recordset("Field1") = Check1.Value
Data1.Recordset("Field2") = Check2.Value
Data1.Recordset("Field3") = Check3.Value
Data1.Recordset("Field4") = Check4.Value
etc.

Data1.Recordset.Update

You need to do the AddNew before checking any of the boxes, and again
before entering any new data.

Let me know if I can be of any more help.

=========================================
"When the going gets tough, the weird turn pro."
         -- R. Duke


=========================================



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 !!



Sat, 01 May 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Basic VB 3.0 Problem - Please Help 1st Timer

2. VB 3.0 - Problem with MDI Children - Please Help

3. Timer release problem under NT 3.51 / VB 3.0

4. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

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

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

7. Please help with 1st program

8. HELP PLEASE: VB 3.0 users in Cape Town RSA

9. Please Help - SQL 6.0 vb 3.0

10. Help please : printing WMF on Printer Object in VB 3.0 Pro

11. VB 3.0 -- timer.exe

12. Please Help! VB 3.0 Pro Grid.vbx

 

 
Powered by phpBB® Forum Software