Jump to content

MS Access help

Featured Replies

Sorry my thread title isn't very specific.

 

I'm working on a table in Access, here's an extract:

 

tableu.jpg

 

I want to eliminate duplicates in the Module_Code field, and merge the data in the UserText1 field, so I end up with something like this:

 

table2u.jpg

 

Any suggestions on a query or series of queries that could do this would be much appreciated.

 

Thanks in anticipation.

  • 2 weeks later...

pk= primary key, fk=foreign key.

 

best approach is to use a cross reference table.

 

tblModuleCodes

---------------

ID, *pk, Autonumber.

ModuleCodeName, text.

 

tblModuleCodeItems

--------------------

ID *pk, Autonumber.

ModuleCodeItemName, text.

 

 

tblCrossRefModCodes

--------------------

ID *pk Autonumber

ModuleCodeID, numeric, *FK

ModuleCodeItemsID, numeric, *FK.

 

 

then simply write a sql, use the cross reference table to query/populate/append to, a table that you need.

 

also, more scaleable, and saves space...

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.