| | |
VB6 - Create mew table using input from two other tables
![]() |
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
Gentlemen,
I have two badly designed tables - I didn't design these table, they where passed on to me. The tables are so cumbersome I have to create a new table, to be able to use their data.
Please see attachments to have a clear idea of the table design flaws:
The tables are: "TblProgrammersHrs"(In this table, ProjectID is the Primary Key - No duplicates) and "TblPersonnel",
and the "NewTable" (in this table, ProjID is the Primary key - no duplicates).
The TblProgrammersHrs table is designed in such a way that the same row contains the 'ProjLeader', his 'programmers' and their respective hours...All in the same row - Please see attachments.
My objective is to create a new table with input from the above two tables.
Note: In the new table, each programmer must occupy a separate row, unlike the 'TblProgrammersHrs' where all programmers are on the same row(record).
Also, in the new table, the 'positions' field should contain the either the index/positions of the programmers in 'TblProgrammersHrs' table.
Problem: What code or how can I populate the new table so that each programmer occupies a separate row?
Below is the SQL to extract the data from both tables. Then I will use the extracted data to populate the new table, but each programmer must be in individual row.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Select * From TblProgrammersHrs, TblPersonnel Where TblPersonnel.Name = TblProgrammersHrs.ProjLeader;
I hope my explanationn is not too complicated.
Any direction will be greatly appreciated.
Thanks.
tgif
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: public variable problems
- Next Thread: media player object
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





