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

Rearranging Data in an MS Access 2007 table into a new column

Hi,

I have Access tables with fields that have the following format:

Expand|Select|Wrap|Line Numbers
  1. --------------------------------------
  2. |CONSIGNEE_NAMES| CONFIRMATION |CONSIGNOR_NAMES|
  3. --------------------------------------
  4. |WATI SMITH    |              | NAUMI WILLIS  |     
  5. |ALAIN PHELLY  |              | BAHATI BOB    |
  6. |MOSES NJESH   |              | LIL TONY      |
  7. |NAUMI WILLIS  |              | WATI SMITH    |
  8. |Max BROWN     |              | MIKE NJAGA    |
  9. |LIL TONY      |              | WAWERU PETER  |
  10. |VICTOR SEKE   |              | VICTOR SEKE   |   
  11. |UHURU KAZI    |              | JANET WECHE   |  
  12. |GEORGE KARI   |              |               |
  13. |KATE FIONA    |              |               |
  14. |MILLIY WENDY  |              |               |
  15.  
-----------------------------------

I need field CONFIRMATION to pic any name from field CONSIGNEE_NAMES that matches the names in field CONSIGNOR_NAMES as shown below..

Expand|Select|Wrap|Line Numbers
  1. ----------------------------------------------
  2. |CONSIGNEE_NAMES| CONFIRMATION |CONSIGNOR_NAMES|
  3. -----------------------------------------------
  4. |WATI SMITH    |NAUMI WILLIS  | NAUMI WILLIS  |     
  5. |ALAIN PHELLY  |              | BAHATI BOB    |
  6. |MOSES NJESH   |LIL TONY      | LIL TONY      |
  7. |NAUMI WILLIS  |WATI SMITH    | WATI SMITH    |
  8. |Max BROWN     |              | MIKE NJAGA    |
  9. |LIL TONY      |MOSES NJESH   | MOSES NJESH   |
  10. |VICTOR SEKE   |VICTOR SEKE   | VICTOR SEKE   |   
  11. |UHURU KAZI    |              | JANET WECHE   |
  12. |GEORGE KARI   |              |               |
  13. |KATE FIONA    |              |               |
  14. |MILLIY WENDY  |              |               |
Kindly help..
Apr 29 '15 #1
5 1897
twinnyfo
3,653 Expert Mod 2GB
Moses,

I do not understand what you are trying to do. Based on your example, only some of the names in the field CONSIGNOR_NAMES were added to the field CONFIRMATION. What is the determining criteria for copying the name?
Apr 29 '15 #2
twinnyfo,

well twinnyfo,that is exactly what I need, I need field CONFIRMATION to receive the names that match field CONSIGNOR_NAMES...those names will be pasted in that field (CONFIRMATION)and the names that don't match field CONSIGNOR_NAMES to be deleted.
Apr 29 '15 #3
Rabbit
12,516 Expert Mod 8TB
Outer join the table to itself on consignee to consignee and consignor to consignee
Apr 29 '15 #4
Yes that's what I need to do @Rabbit
May 5 '15 #5
NeoPa
32,556 Expert Mod 16PB
So, in a nutshell, you want the [Confirmation] field to be updated to reflect the [Consignor_Names] field for each record where the [Consignor_Names] value matches matches any one of the values in [Consignee_Names]? Actually, even though you don't say so, it looks like your example data is matching those records (Either single records or pairs.) where Consignor matches Consignee as well as Consignee matching Consignor.

I suspect Rabbit's suggestion was intended to reflect that but appears to have a typo.
Rabbit:
Outer join the table to itself on consignee to consignor and consignor to consignee
I've underlined where I think that was.

I believe, if the requirement is actually as specific as I suspect it is, then you'll need just the link between Consignee and Consignor (OUTER JOIN). You would then filter on (and update only if) the Consignee of the JOINed version of the table matches Consignor of the main one.

The next step is for you to go away and apply that advice in your project and let us know how you get on. No-one here will simply do it for you.
May 6 '15 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: LadyIlsebet | last post by:
I'm not a fantastic Access developer, but I'm trying to help get Inventory and whatnot organized at work. They are used to 5 year budget plans that list out exactly what has to be purchased what...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
5
by: sphinney | last post by:
Basic question: Does anyone know how to go about adding a control to an Access 2007 form that will allow viewing a Word 2007 document? Reason for asking: My office is about to receive 100+/-...
6
by: mulamootil | last post by:
Hey guys - Is there a way to wrap the text in the header field in an Access 2007 table. I did some googling, however no luck, thought I will post it here. I sure appreciate your time and help. stan
0
by: prashantdixit | last post by:
Hi, I have beent trying importing Excel data with one column containing PDF/JPEG file name to access 2007. I have a Excel file with few columns One of the columns named as "Reference". The...
6
by: Jane Alford | last post by:
Is there any way to dynamically get information about a table in Access 2007? I know I can do this with SQLServer. I'm linking to SQLServer tables from Access 2007. The SQLServer 2005 SELECT...
1
by: JD79 | last post by:
I have an access 2007 database (on an XP machine) that extracts a large set of data from an Oracle db using ODBC. The data extraction is done with a dynamic passthru query that is then called in a...
2
by: Bala Kumaran | last post by:
hello friends! Can anyone help me to matching one column databases from another colunm databases. For example: The below table name is domains ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.