Jump to content

Recommended Posts

Posted

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...
Posted

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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

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.