Try remove the []s and $.
SELECT [- Catalog Masters].Title, [- Catalog Masters].Ounces,
[- Catalog Masters].Lbs_Oz, [- Catalog Masters].Grams,
[- Catalog Mailer Weights].MediaEnvSmall_Grams,
[- Catalog Mailer Weights].MediaEnvSmall_Oz,
[- Catalog Mailer Weights].MediaEnvLarge_Grams,
[- Catalog Mailer Weights].MediaEnvLarge_Oz,
[- Catalog Mailer Weights].FlateRateEnv_Grams,
[- Catalog Mailer Weights].FlateRateEnv_Oz,
IIf([Ounces]>0,Str(Int([Ounces]/16)) & " lbs " &
Str(Round([Ounces]-(Int([Ounces]/16)*16)+[MediaEnvSmall_Oz]+0.5)) & "
oz")
AS SmallMailer,
IIf([Ounces]>0,Str(Int([Ounces]/16)) & " lbs " &
Str(Round([Ounces]-(Int([Ounces]/16)*16)+[FlateRateEnv_Oz]+0.5)) & "
oz")
AS FlatRateEnv
FROM [- Catalog Masters], [- Catalog Mailer Weights]
ORDER BY [- Catalog Masters].Title;
--
Duane Hookom
Microsoft Access MVP
:
Exclude the square brackets, i.e. Str$. Square brackets are used to
indicate
fields and are used when punctuation or spaces have been used in
field names
(which is not good practice).
--
Peter Schmidt
Pert, Australia
:
Included all references mentioned in Browne artricle, but same
problem.
Here's the SQL:
SELECT [- Catalog Masters].Title, [- Catalog Masters].Ounces, [-
Catalog
Masters].Lbs_Oz, [- Catalog Masters].Grams, [- Catalog Mailer
Weights].MediaEnvSmall_Grams, [- Catalog Mailer
Weights].MediaEnvSmall_Oz, [-
Catalog Mailer Weights].MediaEnvLarge_Grams, [- Catalog Mailer
Weights].MediaEnvLarge_Oz, [- Catalog Mailer
Weights].FlateRateEnv_Grams, [-
Catalog Mailer Weights].FlateRateEnv_Oz,
IIf([Ounces]>0,[Str$](Int([Ounces]/16)) & " lbs " &
[Str$](Round([Ounces]-(Int([Ounces]/16)*16)+[MediaEnvSmall_Oz]+0.5))
& " oz")
AS SmallMailer, IIf([Ounces]>0,[Str$](Int([Ounces]/16)) & " lbs " &
[Str$](Round([Ounces]-(Int([Ounces]/16)*16)+[FlateRateEnv_Oz]+0.5))
& " oz")
AS FlatRateEnv
FROM [- Catalog Masters], [- Catalog Mailer Weights]
ORDER BY [- Catalog Masters].Title;
:
Could be a problem with references:
http://allenbrowne.com/ser-38.html
If that's not it, switch your query to SQL View, copy the SQL
statement, and
post in a reply.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
Windows XP Pro
MS Office 2002 (XP)
Getting this error message in a database I've used for years
without
problems. Have unistalled office, rebooted, and reinstalled.
Same
problem.
H-E-L-P !!!