Do Loop?

  • Thread starter Wayne Emminizer
  • Start date
W

Wayne Emminizer

I have 35,000 records with 10 columns of specifications.
For each specification there is an abbreviation. For
example Fillet is Flt. I have written the code to grab
those abbreviations and concatenate them into one
description field (NewItemName). This works fine. My
problem is that it is pulling the abbreviations for the
current record in the form and updating all of
the "NewItemName" fields to this same description. How
do I make it check the specs for each record and update
that records NewItemName value to reflect the specs of
that record only. The code is below:

DoCmd.RunSQL "UPDATE tblItemMaster SET NewItemName='" &
sqlString & "'" & "WHERE [ManagementGrp]='01';"

The concatenated name is called "sqlString". For testing
purposes I am working on this in a group at a time
(ManagementGrp).

Any ideas would be greatly appreciated....thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top