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

SQL- Update Table

if there is anyone who can help I would be so grateful!

I have 2 tables
1 - tblPER with fields strPER and Report(Y/N)
2 - tblPerformance with fields such as strDescription strPER etc....

on a frmPER bound to tblPER is a check box that is bound to the Report
field. when this is checked I need to add 13 new records to
tblPerformance with specific data in the field strDescription (these
are for eg Cost, programme, variation...) in these 13 new records I
also need to record in tblPerformance!strPER the PER for which the
check box has been checked.

thus:

tblPER
strPER Report
N186 true

tblPerformance:

strDescription strPER

Cost N186
Perfomance N186
Variation N186

If anyone can make head or tail of this and can help me I would be so
appreciative!
Nov 13 '05 #1
1 1497
"Layla" <la*******@hotmail.com> wrote in message
news:78**************************@posting.google.c om...
if there is anyone who can help I would be so grateful!

I have 2 tables
1 - tblPER with fields strPER and Report(Y/N)
2 - tblPerformance with fields such as strDescription strPER etc....

on a frmPER bound to tblPER is a check box that is bound to the Report
field. when this is checked I need to add 13 new records to
tblPerformance with specific data in the field strDescription (these
are for eg Cost, programme, variation...) in these 13 new records I
also need to record in tblPerformance!strPER the PER for which the
check box has been checked.

thus:

tblPER
strPER Report
N186 true

tblPerformance:

strDescription strPER

Cost N186
Perfomance N186
Variation N186

If anyone can make head or tail of this and can help me I would be so
appreciative!


You could make the code a lot easier if you had a third table which had list
of these descriptions. If you did that, you might consider giving it a
primary key that was not the name, eg:

tblDescriptions:
DscID DscText
1 Cost
2 Perfomance
3 Variation

So you would have to adjust tblPerformance so it now stored the ID of the
record, not the text. You could also use an index to prevent, for example,
two "Cost" records per parent record. This would be a more standard design
than the two-table approach.

In fact, if you did it like this, you could have a subform based on a
left-join query so it looked as if you had all 13 records present - just
waiting to be filled out (I assume you have more than two fields in your
tblPerformance otherwise there wouldn't be much point in having it)


Nov 13 '05 #2

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

Similar topics

10
by: Dagwood | last post by:
Good morning: At least it's morning where I am. :) I have a rather newbie question I'm afraid. I have VisualStudio.NET, and have installed it along with SQL server. However I can't seem to...
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
2
by: Yves Touze | last post by:
Hi All, I'm trying to migrate from SQL Server 7.0 to SQL Server 2000. I've got some ASP page which call VB components that retrieve shaped recordsets from SQL Server using the MSDATASHAPE...
9
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
0
by: AlessanBar | last post by:
Hello Friends !! I have a strange problem, and I need to know what would be the source of this. I have a laptop computer with the following configuration: Pentium III Brand : Toshiba Speed :...
11
by: Mark Yudkin | last post by:
The documentation is unclear (at least to me) on the permissibility of accessing DB2 (8.1.5) concurrently on and from Windows 2000 / XP / 2003, with separate transactions scope, from separate...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
3
by: datapro01 | last post by:
I am a DB2 DBA that has been asked to become familiar enough with SQL Server in order to become actively involved in its installation, implementation, and to review database backup/recovery...
16
by: Jeremy S. | last post by:
I'm about to install VS.NET 2005 and SQL Server 2005 on a new/clean development machine (XP Pro/SP2 etc). Is the order of installation important (i.e., which product should I install first)? ...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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...

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.