G
Guest
I'm trying to build a distribution list for an email by stepping through a table of names and titles. If the title is "director", add the name to the dist-list string. The idea seemed pretty simple, but the following code get "invalid qualifier" error with stTableName (the table name variable) highlighted. Any idea what's wrong
Public Function Email_SD_Rpt(
Dim Distlist, stTableName As Strin
stTableName = "Account Managers
DoCmd.OpenTable stTableName, acViewNormal, acReadOnl
Do While Not EOF(stTableName
If stTableName.[TITLE] Like "Director*" The
stDistlist = stDistlist & "; " & stTableName.[FULLNAME
stTableName.MoveNex
Loo
MsgBox ("stDistlist = " & stDistlist
End Functio
Public Function Email_SD_Rpt(
Dim Distlist, stTableName As Strin
stTableName = "Account Managers
DoCmd.OpenTable stTableName, acViewNormal, acReadOnl
Do While Not EOF(stTableName
If stTableName.[TITLE] Like "Director*" The
stDistlist = stDistlist & "; " & stTableName.[FULLNAME
stTableName.MoveNex
Loo
MsgBox ("stDistlist = " & stDistlist
End Functio