Mailing List Table

M

Mike

Working on a mailing list table with 10K plus records without any primary keys. Most of the time, have to import from Excel spreadsheets more reocrds. Is there anyway I can control duplication of same names etc. ??? Thanks
 
T

Tim Ferguson

Working on a mailing list table with 10K plus records without any
primary keys.

If it doesn't have a primary key, it's not a table. It's an unordered
junkyard.
Most of the time, have to import from Excel
spreadsheets more reocrds. Is there anyway I can control duplication
of same names etc.

Yes: but you have to be very clear what you mean about duplication. If you
are looking at values like "AK098002" then it's straightforward -- just
query the table before adding the value

If DCount("*", "MyTable", "MyValue = """ & strNextValue & """") _
= 0 Then
rs.AddNew
rs!FirstValue = strFirstValue
rs!NextValue = strNextValue
' etc
rs.Update

End If

and so on. On the other hand, if you are looking at names, detecting "John
Smith", "Smith JA", "Smith, JA", "John A. Smith" and so on will take much
more sensitive programming.

Hope that helps


Tim F
 

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