Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2015, 03:06 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Smile updating records

Hello - i am new to the forum and have a question. I have the following situation:

tbl1: staffname, mgrname, skill, skillLevel
tbl2: skill, skillID

Table one has numerous records for each staffname; ex:
staffname, mgrname, skill, skillLevel
Jones Smith C++ Expert
Jones Smith C# Expert
Jones Smith Testing Proficient
Perry Hacker C++ Expert
Perry Hacker C# Expert
Perry Hacker Testing Proficient

etc....

When I add a new skill to tbl2 like Visual Basic, how do I write a query to update each staffname unique with a record or row that adds Visual Basic

ex:
staffname, mgrname, skill, skillLevel
Jones Smith C++ Expert
Jones Smith C# Expert
Jones Smith Testing Proficient
Jones Smith Visual Basic Not_Evaluated
Perry Hacker C++ Expert
Perry Hacker C# Expert
Perry Hacker Testing Proficient
Perry Hacker Visual Basic Not_Evaluated

Any help would be appreciated? How would this sql look?
 
Old September 11th, 2015, 06:36 PM
Friend of Wrox
Points: 1,015, Level: 12
Points: 1,015, Level: 12 Points: 1,015, Level: 12 Points: 1,015, Level: 12
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Posts: 245
Thanks: 5
Thanked 24 Times in 23 Posts
Default

Quote:
... a query to update each staffname ...
I am not sure is yo want ro add (insert/append query) the skill or update an existing record.

If ass the skill to the staff when why add the records?

If the record not not exist would mean "Not_Evaluated" for that skill? If yes, then I would not add the records. I would calculate this as needed.

Also you tbl1 ( staffname, mgrname, skill, skillLevel) has some data normalization issues. This really needs addressed before going forward. Once htios is fixed, adding a skill will be much easier.
__________________
Boyd Trimmell aka HiTechCoach (.com)
Microsoft Access MVP Alumni 2010-2015




Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in updating records & finding records naveed77 VB Databases Basics 1 January 16th, 2007 12:12 PM
problem in updating records & finding records naveed77 VB How-To 1 January 16th, 2007 12:10 PM
Updating records help bspradeep Classic ASP Databases 29 September 9th, 2003 07:00 AM
Updating records bspradeep Classic ASP Databases 0 August 20th, 2003 09:27 AM
Updating records help bspradeep Classic ASP Databases 0 July 7th, 2003 10:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.