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

How best to add new records (Long)

I'm building an application to monitor progress against Technical Activity
numbers. I have two tables:

tblTechAct
TechnicalActivity (PK)
Description
ActualStart
ActualFinish

tblProgress
TechnicalActivity (FK)
WeekNo
Progress

The app imports data from another system (Oracle) and the data is used to
populate an Excel spreadsheet with Week Number columns containing the
progress data.

In an ideal world I would import the Technical Activity numbers into
tblTechAct and then import progress data on a weekly basis. BUT ... of
course the list of Technical Activities will grow with time and, because of
the nature of the Excel spreadsheet, I need to "fake" previous weeks'
progress for new Technical Activities (the Excel spreadsheet is created from
scratch every time the routine is run, it is not an existing one that is
"added to" each week).

So for example, if TA No XYZ123 is added in Week 750, I need to add an entry
for it in tblProgress for weeks 720 onwards at 0% progress.

My question is, what is the best method of doing this? Importing into
tblTechAct is easy but what about tblProgress? My immediate thought was to
have a query to identify numbers in tblTechAct that aren't in tblProgress
and write a function to add a record for each unique entry in the WeekNo
field. Do I need a function or can it be done in queries.

Sorry about the rambling post, I hope it makes sense.

Many thanks.

Keith.

Jul 24 '07 #1
2 1362
"Keith Wilby" <he**@there.comwrote in message
news:46**********@glkas0286.greenlnk.net...
I'm building an application to monitor progress against Technical Activity
numbers. I have two tables:
Maybe a better way would be to NOT add dummy records and code accordingly
.... but how?!

Jul 24 '07 #2
"salad" <oi*@vinegar.comwrote in message
news:Ey*******************@newsread1.news.pas.eart hlink.net...
>>
Sorry about the rambling post, I hope it makes sense.

Not really. That's why if I take a stab at it and I flub it I can point
my finger at you. :-)
Hi salad and thanks for the response. As is often the case, after posting
this I thought of an alternative method that doesn't require the addition of
dummy records at all. I think I'd gotten into a bit of a blinkered state
with this but I think they're off now ... for a while anyway ;-)

Regards,
Keith.

Jul 25 '07 #3

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

Similar topics

15
by: Joshua Beall | last post by:
Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? Should the password be plain text? Hashed? Not...
10
by: Bob Bedford | last post by:
Sorry if I post here, but I don't have access to any valuable mysql ng for this question, ans since 99% or php programmers deal with mysql, I'm sure I'll get an answer here. Look at the...
5
by: hpi | last post by:
Hello, I have a table : Batch It contains fields batchnummer : Number (Long Integer) datum : Date/Time status : Number (Long Integer) nr_records : Number (Long Integer)
1
by: Chris Uwins | last post by:
Hi there, i know theres a number of ways I can achieve this but want to know the best, (but still quite simple). Up until a year ago I never used Access but have designed a few databases for...
36
by: Crirus | last post by:
Hi I have about 1000 records of users to store.. I dont like the ideea of a database server... How to store does data in a structured way? An XML? How big can became such an xml, because I...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
2
by: Bob | last post by:
I got three related datagrid views one parent and two children of the same. The two child tables contain many thousands of records and some of the contents are bitmap files in a sql server...
0
by: LynchB | last post by:
Hi there I have an audit table which sequentially logs all activity against a device. A read operation is made up of a batch of (usually) three audit records thusly: Record 1 - Open Record 2 -...
6
by: No Spam Man | last post by:
Hi, I am not a programmer and in the past have only created very simple, flat file databases. Although I'm a newbie, I think I could probably figure out basic Boolean logic and financial...
7
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.