C
Claudette Hennessy
Not sure which forum this belongs in: I am creating a table in order to
pass the contents to Word in a mail merge. I do this because the data to be
merged depends on a selection from a form. The query is:
SQL = "SELECT qryDealerMailMerge.ShowID, qryDealerMailMerge.ShowName,
qryDealerMailMerge.ShowYear, qryDealerMailMerge.Bldg,
qryDealerMailMerge.BoothNum, qryDealerMailMerge.ShopFirstName,
qryDealerMailMerge.ShopName, qryDealerMailMerge.ShopTown,
qryDealerMailMerge.ShopState, qryDealerMailMerge.ShopPhone,
qryDealerMailMerge.DealerFirstName, qryDealerMailMerge.DealerLastName,
qryDealerMailMerge.Address, qryDealerMailMerge.HomeTown,
qryDealerMailMerge.HomeState, qryDealerMailMerge.HomeZip,
qryDealerMailMerge.NYS_Tax_ID INTO tblSpringUpdate FROM qryDealerMailMerge
WHERE (((qryDealerMailMerge.ShowID)=[cboChooseShowID]))"
I want to (1) create a tablename with a date attached, for instance
"tblSpringUpdate2008" or (2) create a description along with the table with
date information. I know the description info is in
CurrentDb.TableDefs(ObjectName).Properties("Description")
but have not been successful.....
Thank you in advance,
Claudette
PS If I knew how to pass data to Word from a query with a where clause I
guess I wouldn't have to do this?
pass the contents to Word in a mail merge. I do this because the data to be
merged depends on a selection from a form. The query is:
SQL = "SELECT qryDealerMailMerge.ShowID, qryDealerMailMerge.ShowName,
qryDealerMailMerge.ShowYear, qryDealerMailMerge.Bldg,
qryDealerMailMerge.BoothNum, qryDealerMailMerge.ShopFirstName,
qryDealerMailMerge.ShopName, qryDealerMailMerge.ShopTown,
qryDealerMailMerge.ShopState, qryDealerMailMerge.ShopPhone,
qryDealerMailMerge.DealerFirstName, qryDealerMailMerge.DealerLastName,
qryDealerMailMerge.Address, qryDealerMailMerge.HomeTown,
qryDealerMailMerge.HomeState, qryDealerMailMerge.HomeZip,
qryDealerMailMerge.NYS_Tax_ID INTO tblSpringUpdate FROM qryDealerMailMerge
WHERE (((qryDealerMailMerge.ShowID)=[cboChooseShowID]))"
I want to (1) create a tablename with a date attached, for instance
"tblSpringUpdate2008" or (2) create a description along with the table with
date information. I know the description info is in
CurrentDb.TableDefs(ObjectName).Properties("Description")
but have not been successful.....
Thank you in advance,
Claudette
PS If I knew how to pass data to Word from a query with a where clause I
guess I wouldn't have to do this?