Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"Because of this forum, I continue to WOW! my clients!"

Geography

Where in the world do Tek-Tips members come from?

Creating new entries using macro's & query's

datsyuk (Programmer)
19 Jun 12 13:19
Hi all I'm not entirely sure if what I'm about to describe is possible. I have an input Table with most importantly: skills, dates, and hours as fields. Basically for a certain skill a given number of hours are needed for each month. However, in the current table not all months have hour entries for all skills. What I would like to do is create records for all date/skill combo's with hour value 0 if there is no record that exists.

So:

Skills......Dates......Hours
-----entered data-----
...............................

//append this onto it
--remaining combos--0
.............................0
...

My thoughts for how to go about this is some sort of query against the Master Tables of Skills (and possibly a master Calendar Table). For all records that are unmatched I will need to create a new one in the Labor table w/ value 0 for hours. I am not sure whether I am on the right track for this; if there is a simpler or better way to go about it. I also am not sure how to go about querying for all possible combinations of Skill/Month or creating records with the given value 0 for hours.

Thoughts?
kjv1611 (TechnicalUser)
29 Jun 12 11:52
Sounds like the right track to me if you're wanting to do this. So... you'd need 2 queries, it sounds like:
1. show me what's not there (assuming you've got another table with those values
2. Append query to append those that don't exist back to the main table..

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close