Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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?
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.